A basic slackbot.
- Python >= 3.10
- channels:history
- chat:write
- reactions:read
- users:read
- message.channels
- reaction_added
- Follow the instructions here to create and install a new app and get your secret tokens.
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
$ cp secrets-template.json secrets.json
and fill in your secrets$ npm install -g localtunnel
or locally if you want$ lt --port 3000 --subdomain yoursubdomainhere
$ python3 app.py
- Enable events at https://api.slack.com/apps/<your_workplace>/event-subscriptions?
- Fill in the request URL as https://yoursubdomainhere.loca.lt/slack/events
- Test & save changes
- Your bot should now be able to respond to commands!