Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juanjosalvador/covid19-reporter-bot
Bot that reports every hour COVID-19 status at Spain (or any other country) for Telegram and Mastodon
https://github.com/juanjosalvador/covid19-reporter-bot
covid19 covid19-data mastodon mastodon-bot telegram telegram-bot
Last synced: 15 days ago
JSON representation
Bot that reports every hour COVID-19 status at Spain (or any other country) for Telegram and Mastodon
- Host: GitHub
- URL: https://github.com/juanjosalvador/covid19-reporter-bot
- Owner: JuanjoSalvador
- License: mit
- Created: 2020-03-15T01:00:22.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T03:48:25.000Z (about 2 years ago)
- Last Synced: 2024-04-13T12:57:35.958Z (10 months ago)
- Topics: covid19, covid19-data, mastodon, mastodon-bot, telegram, telegram-bot
- Language: Python
- Homepage: https://hispatodon.club/@covid19_spa
- Size: 20.5 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# COVID-19 Reporter
Bot that reports whenever you want the COVID-19 status at your country. All the data is taken from [Worldometers](https://www.worldometers.info/coronavirus/).
## Running the bot on your VPS
### Prerequisites
* A VPS (the 5$ Digital Ocean tier will ne nice for this)
* Python 3 installed on your VPS
* For Mastodon, you will need:
* A Mastodon account for your bot.
* An API key for your bot. Check Mastodon's docs if you don't know how to do this part.
* For Telegram, you will need:
* A Telegram bot account.
* A Telegram's API key. Both can be obtained from Botfather.
### Install1. Clone or download and unzip the repo.
1. Create a virtual environment for the bot (optional) and install the requirements with `pip`.1. Rename the `settings.example.ini` to `settings.ini`
2. Set your API keys for the service you want, Telegram, Mastodon or both.
3. Set your country in the `main.py` file, under the global variable `COUNTRY`, by default is Spain.
3. To update the bot every 2 hours, add to your crontab something like this:
0 */2 * * * python3 /path/to/your/bot/folder/main.py
## Other platforms
You can also run this bot on AWS Lambda, Heroku, PythonAnywhere, etc. Just choose your favourite.
## The bot in action
My version of this bot is running on my Mastodon instance and serves Mastodona and Telegram. You can see it here:
* [Mastodon](https://hispatodon.club/@covid19_spa)
* [Telegram](https://t.me/covid19_spa)Updated every two hours!