https://github.com/hexlet/dailybot
https://github.com/hexlet/dailybot
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hexlet/dailybot
- Owner: Hexlet
- Created: 2022-12-16T13:00:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-17T08:42:09.000Z (about 3 years ago)
- Last Synced: 2024-04-14T05:41:42.680Z (about 2 years ago)
- Language: Python
- Size: 17.6 KB
- Stars: 0
- Watchers: 11
- Forks: 6
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hexlet-dailybot
hexlet-dailybot is bot for Slack designed to request a daily report.
## Requirements
- python = "^3.8.1"
- slack-bolt = "^1.16.1"
## Installation
1. Fork repo
2. Clone forked repo
```bash
git clone git@github.com:/dailybot.git
```
3. Create workspace for development in [Slack](https://slack.com/help/articles/206845317-Create-a-Slack-workspace)
4. 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
5. Select socket mode and create app-level token. Copy created token in .env file
6. Add slash commands - currently we use only `/report`
7. In `OAuth & Permissions` press install to workspace button. Copy `Bot User OAuth Token` in .env file
8. Select needed capabilities and permissions for bot scopes
9. Select `Enable Events` in `Event Subscriptions`
### Poetry
- Run `make install`
- Run `make start`
### Docker
- Run `make docker-build`
- Run `make docker-start`
### Deploy to Railway
1. Choose forked repo. Create database PostgreSQL.
2. In created app specify variables from database and tokens from slack
3. In app settings specify start command - `make migrate && make start`
4. Verify the logs to make sure the application is successfully deployed