This purpose of this bot is to retrieve the closest mutual aid group given the user's location in Catalonia.
You need to install the requirements, making sure the following are installed:
- Python >= 3.7
- Virtualenv >= 15.1.0
Then, create a virtual environment (e.g. named venv):
virtualenv --python=python3.7 venv
Activate and install dependencies:
source venv/bin/activate
Then you can run bot by typing:
TELEGRAM_BOT_TOKEN=<telegram-token> bot.py
Make sure you use a proper Telegram Bot Token <telegram-token>
.
Follow instructions in here to create one.
In order to be able to configure CD on this bot, you need to configure two Github secrets:
- HEROKU_API_KEY. Instructions on how to generate key for your app, here.
- HEROKU_APP_NAME. Name of the Heroku app you want to use for the bot.
- Automatic detection of groups and locations (i.e. we are hard-coding them now).