Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yogasakti/coronanotifier
Whatsapp Bot automatic notification & respond using MQTT, nodeJS & LowDB
https://github.com/yogasakti/coronanotifier
corona corona-notifier lowdb mqtt nodejs whatsapp-bot whatsapp-web
Last synced: 23 days ago
JSON representation
Whatsapp Bot automatic notification & respond using MQTT, nodeJS & LowDB
- Host: GitHub
- URL: https://github.com/yogasakti/coronanotifier
- Owner: YogaSakti
- License: mit
- Created: 2020-03-10T17:56:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T19:03:58.000Z (almost 2 years ago)
- Last Synced: 2024-10-14T05:41:03.202Z (23 days ago)
- Topics: corona, corona-notifier, lowdb, mqtt, nodejs, whatsapp-bot, whatsapp-web
- Language: JavaScript
- Homepage:
- Size: 4.51 MB
- Stars: 46
- Watchers: 5
- Forks: 20
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Whatsapp Bot Corona Notifier
![GitHub last commit](https://img.shields.io/github/last-commit/YogaSakti/CoronaNotifier)
[![whatsapp-web.js version](https://img.shields.io/github/package-json/dependency-version/YogaSakti/CoronaNotifier/whatsapp-web.js)](https://www.npmjs.com/package/whatsapp-web.js)
![Twitter](https://img.shields.io/twitter/follow/teman_bahagia?style=social)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](https://indonesia-covid-19.mathdro.id/api) by [mathdroid](https://github.com/mathdroid/indonesia-covid-19-api)
## Getting Started
This project require MQTT broker, nodeJS.
### Install
Clone this project```bash
> git clone https://github.com/YogaSakti/CoronaNotifier.git
> cd CoronaNotifier```
Install the dependencies:
```bash
> npm i
```create .env before run the program
```
cp .env.example .env
```Edit .env file:
```
MQTT_URL=mqtt://
MQTT_TOPIC=
```### Usage
1. run the Whatsapp bot```bash
> npm run start
```after running it you need to scan the qr
2. run the corona service
```bash
> 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
```
COVID-19
!corona => ........
!aktif => .......
!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
```
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.## Contributing
Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/YogaSakti/CoronaNotifier/issues) OR [pulls page](https://github.com/YogaSakti/CoronaNotifier/pulls).## Show your support
Give a ⭐️ if this project helped you!
## License
Copyright © 2020 [Yoga Sakti](https://github.com/YogaSakti).
This project is [MIT](https://github.com/YogaSakti/CoronaNotifier/blob/master/LICENSE) licensed.