Skip to content

CyberTKR/COVID-19

Repository files navigation

COVID-19 Bot

This is an open source multi-channel (Messenger, Telegram and LINE) bot for querying and subscribing information and data about Novel Coronavirus (COVID-19).

The data mainly comes from CSSEGISandData/COVID-19 and pomber/covid19 repositories.

Features

  • Enter "total" to get the global numbers.
  • Enter a country to get the numbers of the specified country, for example: "US".
  • Enter a country and a date to get the numbers of the specified country in the specified date, for example: "US 2020-4-5".

Screenshots

Messenger:

messenger

Telegram:

telegram

LINE:

line

Terminal:

Bot Links

Messenger Telegram LINE
Link m.me/102566934739079 t.me/C_O_V_I_D_19_bot line.me/R/ti/p/%40730jstoh
QR Code messenger telegram line

Contributing

Pull Requests and issue reports are welcome. You can follow steps below to submit your pull requests:

Fork, then clone the repo:

git clone git@github.com:your-username/covid-19-bot.git

Install the dependencies:

cd covid-19-bot
yarn

Make sure the tests pass (including eslint, typescript checks and jest tests):

yarn test

Make your changes and tests, and make sure the tests pass.

Development Setup

To develop with your own bot accounts, you have to set up those channel separately:

  • Messenger
  • Telegram
  • LINE

This bot is built with Bottender. For more information, see the Bottender guides.

Messenger

First, fill in the values in your .env file:

MESSENGER_PAGE_ID=
MESSENGER_ACCESS_TOKEN=
MESSENGER_APP_ID=
MESSENGER_APP_SECRET=
MESSENGER_VERIFY_TOKEN=

To set the Messenger webhook and profile, run:

npx bottender messenger webhook set -w <YOUR_WEBHOOK_ORIGIN>/webhooks/messenger
npx bottender messenger profile set

Telegram

First, fill in the values in your .env file:

TELEGRAM_ACCESS_TOKEN=

To set the Telegram webhook, run:

npx bottender telegram webhook set -w <YOUR_WEBHOOK_ORIGIN>/webhooks/telegram

LINE

First, fill in the values in your .env file:

LINE_ACCESS_TOKEN=
LINE_CHANNEL_SECRET=

To set the LINE webhook, edit your webhook setting on LINE Developers Console.

License

MIT