Get discord notifications when there are new cases of covid-19 discovered in your state
This bot watches a few different department of health websites for changes. When it sees a change it pushes an update into all the channels it's configured to squak in. It also listens for user requests for data and responds to them. The bulk of the work in this bot is in scraping each website for data. As states update their code and formating, we have to update the code to scan them.
To add the bot to your server navigate to this link and follow the instructions.
We're looking for help getting more states parsed by the script! Pull requests welcome. Tweet @nibalizer if you have questions.
!or: Get stats from a specific state, by postal code
!fed: Get Federal numbers from CDC
!help: Get help on usage, adding bot to another server
!source, !sources, !src: Get the links to the upstream data
- MN
- TX
- CA
- NY
- RI
- Federal
git clone https://github.com/nibalizer/case-watch-bot
cp .env.example .env
cp example.state.json state.json
vim .env
# add your discord webhook to the config file
npm install
npm start
If you're just adding a state or fixing a state for a data change, try this:
node main.js --test=CA
# or replace CA with any other state code
This will test the code for that state only and stop executing. This speeds development and updates of state-specific code.