adventurebot
A silly text based adventure that gloriously mangled the framework to build bots for Slack.... thank you trinchan
Dependencies
Schema - go get github.com/gorilla/schema
Installation
Is this your first project in GO? You might find this introduction useful
go get github.com/cptspacetoaster/adventurebot
Setup
Create a config file (config.json) in $GOPATH/bin
with the following format:
{
"port": {PORT_FOR_BOT},
"credentials": [
{
"domain": "{YOUR_FIRST_SLACK_DOMAIN}",
"token": "{YOUR_FIRST_SLACK_INCOMING_WEBHOOK_TOKEN}"
},
{
"domain": "{YOUR_SECOND_SLACK_DOMAIN}",
"token": "{YOUR_SECOND_SLACK_INCOMING_WEBHOOK_TOKEN}"
}
]
}
Adventurebot will respond to an Outgoing Webhook. (hard set for patterns that begin with question-mark's at the moment) and it will reply using an Incoming Webhooks
You'll need to find your Incoming Webhook Token and pair each slack domain with its token if you want Adventurebot to respond.
Note, adventurebot will only pay attention to commands that begin with a question-mark! That means your Outgoing Webhook must have this option set properly.
TODO: Lots
Adding Rooms, and other configurations
TODO:
copy the blank.json and fill in the fields... more to come, and I'm not completely finished with the formatting at the moment.
Running the Executable
cd $GOPATH/bin
./adventurebot