Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cyrbil/covid19-bot
A bot that post updates about Covid-19 pandemic to a Slack channel
https://github.com/cyrbil/covid19-bot
covid-19 covid19 slack slack-bot slackbot worldometer
Last synced: about 2 months ago
JSON representation
A bot that post updates about Covid-19 pandemic to a Slack channel
- Host: GitHub
- URL: https://github.com/cyrbil/covid19-bot
- Owner: cyrbil
- Created: 2020-03-25T14:43:50.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T03:54:09.000Z (about 2 years ago)
- Last Synced: 2024-10-13T09:49:30.225Z (3 months ago)
- Topics: covid-19, covid19, slack, slack-bot, slackbot, worldometer
- Language: Python
- Homepage:
- Size: 366 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Covid-19 Bot
A bot that post updates about Covid-19 pandemic to a Slack channel.
> Information source: https://www.worldometers.info/coronavirus/
![Preview](./docs/preview.png)
## Requirements
Minimal requirement is just `docker` or `Python3.8`
You will also need a [`Slack` webhook url](https://api.slack.com/messaging/webhooks).
## Usage
The application uses `docker` for easier deployment. You can use the
`Makefile` commands to do all the tasks.To run the application:
export SLACK_WEBHOOK="https://hooks.slack.com/services/xxxxxx"
export CHANNEL="#xxxxxx" # optional
make build
make run### Add/Remove countries
Edit the `config.json` file.
Key is the anchor from the worldometers's table, value is how to display in slack.
## Contribute
You can install the environment, or use the `docker` environment.
### With `docker`:
make init
### With local environment:
Install a `Python3.8` environment, and optionally create a `virtualenv`.
make install
To run locally:
export SLACK_WEBHOOK="https://hooks.slack.com/services/xxxxxx"
export CHANNEL="#xxxxxx" # optional
python3.8 app.py### Testing
You can run the various checks with:
make precommit
Or individual check (see list in `Makefile`):
make check.lint