Bot
+ Gopher
= Bopher
Bopher is client application connecting Mattermost(3.3.0~) as Bot. You can call Gopher from chat!
- Mattermost 3.3.0~
- mattn/gopher binary file (named
gopher.exe
)
- place bopher/config.json in the same direcoty with bopher.exe
{
// Your Mattermost settings
"mattermost": {
"host": "localhost",
"port": "8065",
"bot": {
"email": "admin@example.com",
"password": "admin",
"name": "Bot",
"first_name": "Go",
"last_name": "Bot"
},
"team": "tttt",
"channel": {
"name":"botting",
"display_name": "BotRoom",
"purpose": "bot_test"
}
},
// path to gopher.exe (Even if you use windows, this value is like `$GOPATH` not `%GOPATH%`)
// details -> https://github.com/golang/go/issues/8469
"gopher": "$GOPATH/bin/gopher.exe",
// The maximum number of gophers on display
// If you set a large number, gopher will eat all of your machine resource)
"max_of_gophers": 10
}
bopher.exe
Message | Action |
---|---|
gopher |
Call a gopher |
bye gopher |
kill all gophers 😱 |
jump gopher |
jump all existing gophers |
hello gopher |
a gopher say hello |
whats gopher? |
r u sure? |
go get github.com/kaakaa/bopher
cd $GOPATH/src/github.com/kaakaa/bopher
make build
This code is provided under the MIT license.