Created
October 30, 2016 17:09
-
-
Save markphelps/8dbe1aad3961460f68960b14334c981c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ( | |
Idle = iota | |
Ready | |
Questioning | |
Answering | |
Done | |
) | |
// Bot handles all communication from/to slack and users | |
type Bot struct { | |
client *slack.RTM | |
ID string | |
teamID string | |
conversations map[string]int // [userID]state | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment