This repository hosts https://twitter.com/chronodoseparis source code
It leverages https://vitemadose.covidtracker.fr/ to find new available appointments in the "chronodose" section
Create a twitter app on http://apps.twitter.com/, and create a twitter account for your bot.
To generate twitter account tokens for a twitter app, you can use this script https://gist.github.com/PLhery/4c82273e351540be327908c44698b322
- download the docker-compose.yml file
mkdir chronobot
cd chronobot
curl https://raw.githubusercontent.com/PLhery/chronodose_twitterbot/main/docker-compose.yml -o docker-compose.yml
-
customize the ENVIRONMENT section in the file
vim docker-compose.yml
-
run
docker-compose up -d
-
To update the bot, run
docker-compose pull && docker-compose up -d
docker run -d plhery/chronodose_twitter -e DEPARTMENTS_TO_CHECK=75,92,93,94 -e APP_KEY=XXXX -e APP_SECRET=XXXX -e ACCESS_TOKEN=XXXX -e ACCESS_SECRET=XXXX
- clone the repository
- fill the .env file with your twitter credentials / tweak some options
- either use docker to install and start the bot
docker build . -t plhery/chronobot
docker run -d plhery/chronobot
- Or use node 14 + npm to start the bot:
npm install
npm run build
npm start
- To start in the background, for instance you can use pm2:
npm install -g pm2
pm2 start chronobot