项目作者: ahmadchen

项目描述 :
Covid-19 Whatsapp Bot
高级语言: JavaScript
项目地址: git://github.com/ahmadchen/CoronaNotifier.git
创建时间: 2020-04-13T08:44:41Z
项目社区:https://github.com/ahmadchen/CoronaNotifier

开源协议:

下载


Corona Notifier

GitHub
Twitter

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 by mathdroid

The Diagram

Diagram

Getting Started

This project require MQTT broker, nodeJS

Clone this project

  1. > git clone https://github.com/ahmadchen/CoronaNotifier.git
  2. > cd CoronaNotifier

Install the dependencies:

  1. > npm i

Edit MQTT topic in .env file:

  1. MQTT_TOPIC= ....

run the Whatsapp bot

  1. > node index.js

after running it you need to scan the qr

run the corona service

  1. > 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
    1. COVID-19
    2. !corona => ........
    3. !aktif => .......
    4. !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
    ```
    1. 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
```

  1. !aktif
    Using this command will enable notifications when there is a data update.
  2. !mati
    Using this command will disable notifications when there is a data update.
  3. !data
    Using this command will return a list of websites that contain coronavirus data.
  4. !peta
    Using this command will return the corona virus distribution map information.