A chat bot to run Ruby publicly
- Setup Slack App
- Go to https://api.slack.com/apps and Create New App
- Setup "Basic Information"
- Create an "App-Level Token" with a scope: connections:write
- Memo the token (starting with
xapp-
)
- Setup "OAuth & Permissions"
- Add Scopes:
app_mentions:read
,chat:write
, andreactions:write
- Memo "Bot User OAuth Access Token" (starting with
xoxb-
)
- Add Scopes:
- Setup "Event Subscriptions"
- Subscribe to
app_mention
bot events
- Subscribe to
- Setup "Socket Mode"
- Enable Socket Mode
- "Install App"
- Run all-ruby-bot.rb
- with an environment varibale
ALL_RUBY_BOT_SLACK_BOT_TOKEN
set as the "Bot User OAuth Access Token" - with an environment varibale
ALL_RUBY_BOT_SLACK_APP_TOKEN
set as the "App-Level Token"
- with an environment varibale