GitXplorerGitXplorer
n

case-watch-bot

public
4 stars
4 forks
15 issues

Commits

List of commits on branch master.
Unverified
392be9534d34331ae441ed47c64a81281cf27f57

Remove print statements

nnibalizer committed 5 years ago
Unverified
4a7d427d64efff20f4e1659314bbca6be2f96638

CA: Data change and updates

nnibalizer committed 5 years ago
Unverified
bde8afd60f9ff04e36d97f8e9c991a760ee69467

MN: Data change

nnibalizer committed 5 years ago
Unverified
ab72a421e9ac4ff28838d46ac6ac4aabf21ede2e

CA: Data change

nnibalizer committed 5 years ago
Unverified
5fe261c8c9f91e95df6bb5840299548a03264563

RI: Data change

nnibalizer committed 5 years ago
Unverified
640c4ab1fdb45c69679006c37ef94c5933485dd7

TX: temporarily disable

nnibalizer committed 5 years ago

README

The README file for this repository.

case-watch-bot

Get discord notifications when there are new cases of covid-19 discovered in your state

covid 19 bot

About

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.

Add Bot to your server

To add the bot to your server navigate to this link and follow the instructions.

Help wanted

We're looking for help getting more states parsed by the script! Pull requests welcome. Tweet @nibalizer if you have questions.

Bot Commands

!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

States supported

  • MN
  • TX
  • CA
  • NY
  • RI
  • Federal

quickstart

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

Developement flow

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.