Simple LocalCoinSwap group Telgram bot which moderates: https://t.me/localcoinswap (group ID -1001332456112)
Setup:
- Create virtual env and open it:
virtualenv -p python3 venv
source venv/bin/activate
- Install requirements:
pip3 install -r requirements.txt
- Create
settings.py
file in base directory - Create variables in
settings.py
: TOKEN = 'token', where 'token' is the bot authentication token MYMEMORY_KEY = 'key', where 'key' is an API key from https://mymemory.translated.net/ MYMEMORY_CONTACT = 'email@domain.com' emergency contact email - increases translation allowance to 10K words per day EXCHANGE_URL = 'https://localcoinswap.com'
Testing locally:
- Open virtualenv and then start the bot:
source venv/bin/activate
python3 localcoinbot.py
Remote deployment: The included systemd service file has been tested for remote deployment.