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.yaml
and setup the values like this:
Domain: "your.chatdomain.com"
LongName: "Mattermost Bot Sample"
UserEmail: "your@email.here"
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.X
appears on the command line.Mattermost Bot Sample has started running
is posted in theDebugging For Sample Bot
channel.
-
Log in to the Mattermost server using the login you defined in
config.yaml
. (your@email.here
andsomepasswordhere
in the given example.) -
Join the
Debugging For Sample Bot
channel.
- In the terminal window, press
CTRL+C
to stop the bot. You should seeMattermost Bot Sample has stopped running
posted in theDebugging For Sample Bot
channel.
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!