Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nibalizer/case-watch-bot
Watch various Dept of Health websites for coronavirus cases
https://github.com/nibalizer/case-watch-bot
coronavirus discord webscraping
Last synced: 2 months ago
JSON representation
Watch various Dept of Health websites for coronavirus cases
- Host: GitHub
- URL: https://github.com/nibalizer/case-watch-bot
- Owner: nibalizer
- License: mit
- Created: 2020-03-09T22:21:49.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T04:37:35.000Z (about 2 years ago)
- Last Synced: 2024-10-03T09:57:25.425Z (3 months ago)
- Topics: coronavirus, discord, webscraping
- Language: JavaScript
- Homepage:
- Size: 302 KB
- Stars: 4
- Watchers: 3
- Forks: 4
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# case-watch-bot
Get discord notifications when there are new cases of covid-19 discovered in your state
![covid 19 bot](img/covid-19bot.png)
## 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](https://discordapp.com/api/oauth2/authorize?client_id=686649091069050996&permissions=93184&scope=bot>) and follow the instructions.
## Help wanted
We're looking for help getting more states parsed by the script! Pull requests welcome. Tweet [@nibalizer](https://twitter.com/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.