Orchestration script for running DC Slack and GitHub bots
- Spin up a
t2.nano
git clone https://github.com/DemocracyClub/dc-bots.git
cd dc-bots
sudo ./provision.sh
to configure the server./setupvenv.sh
to configure the virtual environmentcp settings.example.json settings.json
- Set up any additional settings
- Configure cron to run the bots e.g:
MAILTO="someone@example.com"
1 */6 * * * cd /home/ubuntu/dc-bots/ && git pull && /home/ubuntu/dc-bots/bots.sh
10 10 1 * * cd /home/ubuntu/dc-bots/ && /home/ubuntu/dc-bots/prune_logs.sh