A domain(or a subdomain) is ready to host the application
- Create a new app here
- Navigate to the OAuth & Permissions page and add the following Bot Token Scopes:
users:read
channels:read
groups:read
chat:write
commands
incoming-webhook
BASE_URL stands for https://slackbot-hosted-domain.com hereafter.
Use this url for Redirect :BASE_URL
- Activate Interactivity & Shortcuts and add this url:
BASE_URL/api/slack/action
- Activate Slash Commands adding two slash commands
/ping
,/quiz
and use this url:BASE_URL/api/slack/command
- Activate Event Subscriptions subscribing to the event type
member_joined_channel
and add this url:BASE_URL/api/slack/event
(This step needs the application to be running :D so you can skip this and come back a few mins later) - Navigate to the App Home page and toggle Always Show My Bot as Online (according to your reference)
bundle install
cp .env.example .env
Go to https://api.slack.com/apps and click your application.
Grab the infomation needed for .env file from Basic Information section.
Use this command to run the app on your server:
rails s -e production -b 0.0.0.0
Open the BASE_URL in your browser
Not limited to any specific platform
MIT
[x] Change the interactive message templates to the new ones
[ ] Add Rubocop linting
[ ] Add Specs
[ ] Add TravisCI build flow
[ ] Add Contribution Guide
This project is built on top of the Slack Ruby Bot Server and Slack Ruby Bot Server Events
A big thanks to Daniel Doubrovkine's great work.
Made with ❤️ by CrazyOptimist 🐬