Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.58 KB

README.md

File metadata and controls

44 lines (35 loc) · 1.58 KB

UIUC COVID Discord Bot

Authors: Max Knutson & Thailer Lietz

This is a Discord bot that periodically retrieves data from the UIUC On-Campus COVID-19 Testing Data Dashboard. The user can see this data through summaries and graphs through various commands. An explanation of the data retrieved can be found on this webpage.

Contact me if you want this bot in your server! My email is maxtk2@illinois.edu.

Commands

  • -ping: Prints the ping of the bot.
  • -data: Prints an embed containing a summary of COVID data.
  • -graph: Displays a graph of case positivity % over time.

Examples

data graph

Getting Started

Requirements

  • Python 3.8.5
  • discord.py 1.6.0
  • playwright 0.171.1
  • pandas 1.2.0
  • matplotlib 3.3.4
  • Chromium by python -m playwright install

Setting Up

  1. Create a Discord bot and invite it to your server.
  2. Clone this repo and go to its directory.
    git clone https://github.com/maxtk2/UIUC-COVID-Discord-Bot.git
    cd UIUC-COVID-Discord-Bot/
    
  3. Copy the file config_example.py as config.py.
    cp config_example.py config.py
    
  4. In config.py, assign the token variable to be your bot's token.
  5. Run main.py.
    python3 main.py