Giter VIP home page Giter VIP logo

coviddiscordbot's Introduction

Covid-19 Discord Bot (Thai)

Due to API change, this repo is DEPRECATED and ARCHIVED

Half-work-half-broken Discord bot that run on Discord.js, providing command to check today's covid stat in thailand via DDC's API

Init Setup

You have to do this on the first time. No need after that

  1. install module
 npm install --only=prod
  1. Create ".env" file in root directory (you can use template from .env.example)
 cp .env.example .env
  1. In .env file, change placeholder with your bot's token (Do not use whitespace)
DISCORD_TOKEN=#YOUR_TOKEN_HERE

How to run

Simply just

 npm start

or

 node .

Docker Image

Pull image from Docker hub

 docker pull byte101/covid-discord-bot-docker

Create and run container

 docker run -e DISCORD_TOKEN=**YOUR_TOKEN_HERE** byte101/covid-discord-bot-docker

Usage

These are available command.

  1. Get today data now
 /getcovidstat
  1. Register daily data message
 /dailystat True|False

The same message as /getcovidstat but it will automatically send the message at 8 am every day on that channel. True to get message, False to don't, False by default. 3. Get chart of data for previous 30 days

 /getchart infect|death|recovered|all

coviddiscordbot's People

Contributors

onfirebyte avatar dependabot[bot] avatar

Watchers

 avatar

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.