Giter VIP home page Giter VIP logo

coronanotifier's Introduction

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

> 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=

Usage

  1. run the Whatsapp bot
> npm run start

after running it you need to scan the qr

  1. run the corona service
> 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  =>  ......
  1. !covid19 Using this command will response sub list of available command
  2. !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
  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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.