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
You have to do this on the first time. No need after that
- install module
npm install --only=prod
- Create ".env" file in root directory (you can use template from .env.example)
cp .env.example .env
- In .env file, change placeholder with your bot's token (Do not use whitespace)
DISCORD_TOKEN=#YOUR_TOKEN_HERE
Simply just
npm start
or
node .
docker pull byte101/covid-discord-bot-docker
docker run -e DISCORD_TOKEN=**YOUR_TOKEN_HERE** byte101/covid-discord-bot-docker
These are available command.
- Get today data now
/getcovidstat
- 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