Corona Notifier is a Whatsapp automatic notification robot using MQTT, nodeJS & lowDB. The Corona Service will collect latest data about the COVID-19 indonesian case from indonesia-covid-19-api by mathdroid
This project require MQTT broker, nodeJS.
Clone this project
> git clone https://github.com/YogaSakti/CoronaNotifier.git
> cd CoronaNotifier
Install the dependencies:
> npm i
create .env before run the program
cp .env.example .env
Edit .env file:
MQTT_URL=mqtt://
MQTT_TOPIC=
- run the Whatsapp bot
> npm run start
after running it you need to scan the qr
- run the corona service
> npm run corona
This bot is for covid-19 information purpose by automatically answer for available data, by using the available command :
- !help The introduction and list of available command, example output
COVID-19
!corona => ........
!aktif => .......
!mati => ......
- !covid19 Using this command will response sub list of available command
- !corona Using this command will return information about current indonesia corona case and global case, example output
COVID-19 Update!!
Negara: xx
Total Kasus: xx
Kasus Baru: xx
Total Pasien: xx
Sembuh: xx
Sembuh Baru: xx
Presentase Sembuh: xx.xx%
Meninggal: xx
Meninggal Baru: xx
Presentase Meninggal: xx.xx%
Dicek pada: xxx, xx xxxx 2020 | xx.xx WIB
- !aktif Using this command will enable notifications when there is a data update.
- !mati Using this command will disable notifications when there is a data update.
Contributions, issues and feature requests are welcome!
Feel free to check issues page OR pulls page.
Give a ⭐️ if this project helped you!
Copyright © 2020 Yoga Sakti.
This project is MIT licensed.