The code for /u/TeaSalesBot which responds to users of /r/tea who mention a vendor who has had recent sales posted to /r/TeaSales.
This bot is ran by /u/taylorkline.
Edit vendors.json to update the vendors for whom the bot will look up sales.
This bot is written in python3.6
and integrated with Travis for continuous testing.
After adding appropriate credentials to praw.ini.example
and renaming it to praw.ini
, the following commands will get you up and running:
python3.6 -m venv teasalesenv
source teasalesenv/bin/activate
pip install -r requirements.txt
python3.6 bot.py
To run the bot continuously through errors and reboots, add this entry to the crontab
via crontab -e
:
@reboot /path/to/bot/run_continously.sh >> /path/to/bot/run.log 2>&1