项目作者: YogaSakti

项目描述 :
Whatsapp Bot automatic notification & respond using MQTT, nodeJS & LowDB
高级语言: JavaScript
项目地址: git://github.com/YogaSakti/CoronaNotifier.git
创建时间: 2020-03-10T17:56:31Z
项目社区:https://github.com/YogaSakti/CoronaNotifier

开源协议:MIT License

下载


Whatsapp Bot Corona Notifier

GitHub last commit
whatsapp-web.js version
Twitter

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

Getting Started

This project require MQTT broker, nodeJS.

Install

Clone this project

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

Install the dependencies:

  1. > npm i

create .env before run the program

  1. cp .env.example .env

Edit .env file:

  1. MQTT_URL=mqtt://
  2. MQTT_TOPIC=

Usage

  1. run the Whatsapp bot
  1. > npm run start

after running it you need to scan the qr

  1. run the corona service
  1. > npm run corona

Bot Whatsapp Command

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. !covid19
    Using this command will response sub list of available command
  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.

Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page OR pulls page.

Show your support

Give a ⭐️ if this project helped you!

License

Copyright © 2020 Yoga Sakti.

This project is MIT licensed.