Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 549 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 549 Bytes

Slack bot

The bot we deployed to our Slack team

Development

Create a Python 3 virtual environment and install dependencies listed in requirements.txt.

$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt

Deployment

First obtain the API token from Slack website. Then obtain the bot id by running print_bot_id.py.

$ SLACK_BOT_TOKEN=<token> python print_bot_id.py

Then run the main script enigma.py.

$ SLACK_BOT_TOKEN=<token> BOT_ID=<bot-id> python enigma.py