commit 06a84cc2e6c78c9a99a59c1c39eb248fa586b93d from: Witcher01 date: Sun Jan 30 12:18:37 2022 UTC add README commit - ab04417d6ccbf80f382c02525d83ceccfeb71e17 commit + 06a84cc2e6c78c9a99a59c1c39eb248fa586b93d blob - /dev/null blob + 97858d174c07f02a39c86938e7f1d27e6b935aed (mode 644) --- /dev/null +++ README.md @@ -0,0 +1,33 @@ +# incidence_updates + +Post the current incidence numbers of the specified districts to a specified discord channel. + +This uses [rki-covid-api](https://github.com/marlon360/rki-covid-api) written by [marlon360](https://github.com/marlon360/) as the REST API source. + +## Compiling + +Install the dependencies: + +- Rust + +Then compile discord_covid19: + +``` +cargo build +``` + +## Usage + +Set these environment variables: + +- `DISCORD_TOKEN`: the application token of your discord bot +- `CHANNEL_ID`: the discord channel to post the results to +- `DISTRICTS`: a comma separated list with the district codes to be checked + +## Resources + +Send patches and questions to [~witcher/public-inbox@lists.sr.ht](https://lists.sr.ht/~witcher/public-inbox). + +Instructions for preparing a patch are available at [git-send-email.io](https://git-send-email.io/). + +Bugs and todo can be found at [~witcher/incidence_updates](https://todo.sr.ht/~witcher/incidence_updates).