https://github.com/ahmadchen/coronanotifier
Covid-19 Whatsapp Bot
https://github.com/ahmadchen/coronanotifier
bot covid-19 covid-19-whatsapp-bot covid-api covid19 covid19-data covid19-live-tracker database hacking javascript model neural-network node node-module notifications robotics terminal-based terraform
Last synced: about 1 month ago
JSON representation
Covid-19 Whatsapp Bot
- Host: GitHub
- URL: https://github.com/ahmadchen/coronanotifier
- Owner: ahmadchen
- Created: 2020-04-13T08:44:41.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-13T09:02:06.000Z (about 5 years ago)
- Last Synced: 2025-01-25T11:26:18.712Z (3 months ago)
- Topics: bot, covid-19, covid-19-whatsapp-bot, covid-api, covid19, covid19-data, covid19-live-tracker, database, hacking, javascript, model, neural-network, node, node-module, notifications, robotics, terminal-based, terraform
- Language: JavaScript
- Homepage:
- Size: 305 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Corona Notifier

Corona Notifier is a Whatsapp automatic notification robot using MQTT & nodeJS. The Corona Service will collect latest data about the COVID-19 indonesian case from [indonesia-covid-19-api](https://indonesia-covid-19.mathdro.id/api) by [mathdroid](https://github.com/mathdroid/indonesia-covid-19-api)
#### The Diagram
## Getting Started
This project require MQTT broker, nodeJS
Clone this project
```bash
> git clone https://github.com/ahmadchen/CoronaNotifier.git
> cd CoronaNotifier```
Install the dependencies:
```bash
> npm i
```Edit MQTT topic in .env file:
```
MQTT_TOPIC= ....
```run the Whatsapp bot
```bash
> node index.js
```after running it you need to scan the qr
run the corona service
```bash
> node CoronaService\corona.js
```## Bot Whatsapp Command
(WARNING: This is only available with Bahasa Language)This bot is for covid-19 information purpose by automatically answer for available data, by using the available command :
1. !help
The introduction and list of available command, example output
```
COVID-19
!corona => ........
!aktif => .......
!mati => ......
```
2. !ping
Using this command will response "pong"
3. !corona
Using this command will return information about current indonesia corona case and global case, example output
```
COVID-19 Update!!
Negara: xxTotal Kasus: xx
Kasus Baru: xx
Total Pasien: xxSembuh: 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
```
4. !aktif
Using this command will enable notifications when there is a data update.
5. !mati
Using this command will disable notifications when there is a data update.
6. !data
Using this command will return a list of websites that contain coronavirus data.
7. !peta
Using this command will return the corona virus distribution map information.