hexlet-dailybot is bot for Slack designed to request a daily report.
- python = "^3.8.1"
- slack-bolt = "^1.16.1"
-
Fork repo
-
Clone forked repo
git clone git@github.com:<your-git-account>/dailybot.git
-
Create workspace for development in Slack
-
In workspace go to "Settings & administration" -> "Manage apps". Press "Create new app" -> "From scratch". Enter any name in "App Name" field and select workspace created by you
-
Select socket mode and create app-level token. Copy created token in .env file
-
Add slash commands - currently we use only
/report
-
In
OAuth & Permissions
press install to workspace button. CopyBot User OAuth Token
in .env file -
Select needed capabilities and permissions for bot scopes
-
Select
Enable Events
inEvent Subscriptions
- Run
make install
- Run
make start
- Run
make docker-build
- Run
make docker-start
- Choose forked repo. Create database PostgreSQL.
- In created app specify variables from database and tokens from slack
- In app settings specify start command -
make migrate && make start
- Verify the logs to make sure the application is successfully deployed