Skip to content

A discord bot to track covid stats in the uk via the UK Government Coronavirus API.

Notifications You must be signed in to change notification settings

JacobA2000/covid19-tracker-discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Covid-19 Tracker

A discord bot to track covid stats in the uk via the UK Government Coronavirus API

On the first run the bot will not boot, and instead a config.json file is created in the same directory as the bots main file. It will look similar to this:

{"token": "token", "prefix": "&covid", "areaType": "", "area": ""}

You need to change the token value to your discord applications API token
(You can also update the other values but it isn't required, and area and areaType can be set dynamically via bot commands.)

COMMANDS
(To initiate a command type the prefix followed by the command and any parameters.)

  • areas - gets a list of valid areas for the specified area.
  • setarea - sets the areaType and area and updates the config file.
  • daily - gets the latest stats from the api.
  • weekly - gets the latest cumulative stats from the api.
  • stats - gets an overview of all included stats.

EXAMPLES OF EXPECTED OUTPUT:
Areas Command:
areas command

Setarea Command:
setarea command

Daily Command:
daily command

Weekly Command:
weekly command

Stats Command:
stats command

About

A discord bot to track covid stats in the uk via the UK Government Coronavirus API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages