https://github.com/limhenry/myvaccinecount
Source code for Malaysia Vaccine Tracker Mastodon + Twitter Bot
https://github.com/limhenry/myvaccinecount
covid-19 firebase-cloud-functions mastodon-bot telegram-bot twitter-bot
Last synced: about 1 year ago
JSON representation
Source code for Malaysia Vaccine Tracker Mastodon + Twitter Bot
- Host: GitHub
- URL: https://github.com/limhenry/myvaccinecount
- Owner: limhenry
- License: mit
- Created: 2021-11-12T17:07:42.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-16T17:30:36.000Z (almost 3 years ago)
- Last Synced: 2023-07-16T18:29:12.285Z (almost 3 years ago)
- Topics: covid-19, firebase-cloud-functions, mastodon-bot, telegram-bot, twitter-bot
- Language: JavaScript
- Homepage: https://mastodon.social/@MYVaccineCount
- Size: 261 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Malaysia Vaccine Tracker Mastodon + Twitter Bot 🇲🇾

## Links
- Mastodon: [@MYVaccineCount@mastodon.social](https://mastodon.social/@MYVaccineCount)
- Twitter: [@MYVaccineCount](https://twitter.com/MYVaccineCount)
## Techs
- 🚀 Node.js
- 🚀 Firebase Cloud Functions, Firebase Realtime Database
- 🚀 Mastodon + Twitter API (Send Tweet, Update Profile Image, Update Header Image)
- 🚀 Canvas (Generate Vaccination Progress Profile Image)
- 🚀 Chart.js (Generate Vaccination Rate Chart)
- 🚀 Telegram Bot Platform (Send success/error message to Telegram)
## Build Setup
```
$ cd functions
# install dependencies
$ npm install
# serve cloud functions locally
$ npm run serve
```
- Setup Telegram Bot: https://core.telegram.org/bots
- Setup Twitter API: https://developer.twitter.com/en/docs
- Setup Mastodon API: https://docs.joinmastodon.org/client/intro
- Setup environment config: Use `firebase functions:config:set` to set the environment configuration. See [.runtimeconfig.sample.json](https://github.com/limhenry/MYVaccineCount/blob/master/.runtimeconfig.sample.json) for all the required environment configs.
## Data Source
- [Ministry of Health Malaysia GitHub](https://github.com/MoH-Malaysia/covid19-public/blob/main/vaccination/vax_malaysia.csv)
## License
The project is published under the [MIT license](https://github.com/limhenry/MYVaccineCount/blob/master/LICENSE.md).