A bot for Mattermost servers that can listen for events and perform actions.
This code is based on mattermost-bot-sample-golang made by mattermost.
- Clone the GitHub repository.
$ git clone https://github.com/qubist/holobot.git
$ cd holobot
- Create a config file called
config.yamland setup the values like this:
Domain: "your.chatdomain.com"
LongName: "Mattermost Bot Sample"
UserEmail: "[email protected]"
UserPassword: "somepasswordhere"
UserName: "imabot"
UserFirst: "Im A"
UserLast: "Bot."
PublicTeamName: "name-of-public-team"
PrivateTeamName: "name-of-private-team"
DebuggingTeamName: "name-of-debugging-team"
LogChannel: "debugging-for-sample-bot"
Debugging: false- Get the Mattermost server model package.
$ go get github.com/mattermost/mattermost-server/model
$ make run
You can verify the Bot is running when
Server detected and is running version 3.X.Xappears on the command line.Mattermost Bot Sample has started runningis posted in theDebugging For Sample Botchannel.
-
Log in to the Mattermost server using the login you defined in
config.yaml. ([email protected]andsomepasswordherein the given example.) -
Join the
Debugging For Sample Botchannel.
- In the terminal window, press
CTRL+Cto stop the bot. You should seeMattermost Bot Sample has stopped runningposted in theDebugging For Sample Botchannel.
NOT Will
zippy has maintained this software in the past
Questions can be asked in the Holochain public Mattermost server. I'd love your suggestions!
Pull requests are accepted. Contributions to the code would be greatly appreciated!