A bot that monitors datasources for COVID-19
- Make sure you have python 3.8
python --version - Create a virtual environment
python -m venv venv/ - Activate venv
source venv/bin/activate - Install requirements
pip install -r requirements.txt - Add required environment variables
- Run the script
python3 bot.py
The following are required:
APP_LOGScontrols where logs are writtenAPP_LOGLEVELcontrols the loglevelCONSUMER_KEYTwitter consumer keyCONSUMER_KEY_SECRETTwitter consumer key secretACCESS_TOKENTwitter access tokenACCESS_TOKEN_SECRETTwitter access token secretGSHEET_API_SERVICE_ACCOUNT_FILEThe json file with google API service account credentialsGSHEET_POLLING_INTERVAL_SECcontrols how often gsheet is polled. Defaults to 60GSHEET_SPREADSHEET_IDthe Spreadsheet idGSHEET_SHEET_NAMEthe individual sheet nameSLACK_WEBHOOK_URLslack webhook URLDB_PATHthe filepath of the sqlite3 dbPOST_SLACKwhentrueposts to Slack are enabledPOST_TWITTERwhentrueposts to Twitter are enabled