A Discord bot to help University of Waterloo students find open classrooms.
While available to the public as a discord bot, to run on Cloudflare Workers follow the steps below.
- Clone the repository
git clone https://github.com/manasbir/open-class-discord.git
cd open-class-discord- 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- Register the commands with Discord
cd register-commands
cargo run- Deploy!
cd ../workers
wrangler publish- 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
- Rust
- SQL (Cloudflare D1)