Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Class Discord

A Discord bot to help University of Waterloo students find open classrooms.

Installation

While available to the public as a discord bot, to run on Cloudflare Workers follow the steps below.

  1. Clone the repository
git clone https://github.com/manasbir/open-class-discord.git
cd open-class-discord
  1. Create the .env and populate the environment variables
echo UWATERLOO_API_KEY="<INSERT_API_KEY>" >> .env
echo DISCORD_APPLICATION_ID="<INSERT_APPLICATION_ID>" >> .env
echo DISCORD_PUBLIC_KEY="<INSERT_PUBLIC_KEY>" >> .env
echo DISCORD_TOKEN="<INSERT_BOT_TOKEN>" >> .env
echo ADMIN_DISCORD_ID="<INSERT_YOUR_DISCORD_ID>" >> .env

cat .env > workers/.dev.vars
  1. Register the commands with Discord
cd register-commands
cargo run
  1. Deploy!
cd ../workers
wrangler publish

About the code

Architecture

  • Command-based Discord bot using custom bindings
  • Fully built on cloudflare workers
  • DB using Cloudflare D1 SQL
  • Periodic updates from UW Open Data API using cron scheduling

Technology Stack

  • Rust
  • SQL (Cloudflare D1)

About

discord bot to find open classes in uwaterloo

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages