Mention to bot, bot choose user randomly in the channel.
Typical usage is when asking someone for a small task.
Implementatin is based on go-slack-interactive.
Mention bot user name then bot nominate a member in the channel randomly.
Press OK
button if the member can do the task, otherwise press NG
buttton.
When NG
button is pressed, bot nominate a member randomly again.
- Create Slack App as internal integrations
- Select permission scopes
incoming-webhook
,bot
- Turn on
Interactivity
and setRequest URL
:{scheme}://{host}/taskuji
- Invite bot user to your channel.
To run this bot, you need to set the following env vars,
export BOT_ID="U***" // you can get this after create a bot user (via slack app management console)
export BOT_TOKEN="xoxb-***" // you can get this after create a bot user (via slack app management console)
export VERIFICATION_TOKEN="***" // you can get this after enable interactive message (via slack app management console)
To run this,
$ dep ensure
$ go build -o bot && ./bot