Python Discord bot that displays CSULB course information. Get notifications when seats & sections open.
The data displayed by the bot updates every morning at 5:03 AM - 5:04 AM. This is when the CSULB schedule of classes updates. Currently, real time updates are a work in progress.
See Gallery below to see examples of bot usage.
/search of CECS 329 in Fall 2024 with opened_only set to False
Set channel to where notifications are sent:
Beach Buddy updating its' data on courses every morning:
-
Python 3.11+
-
All dependencies within
requirements.txt
Windows:
- Download Python and set it to PATH during installation.
- Clone this repository
- Create a file called
config.py
in the project root folder- Set variable BOT_TOKEN to your bot's token. See next section for directions on how to set up your own Discord bot.
- Create a
notif.txt
file - Download requirements using:
pip install -r /path/to/requirements.txt
- Run the
scrape_subjects.py
code to populate two CSV files holding all course information. The CSV files will be located in the seasons folder.
- Visit the Discord Developer Portal to create your Discord Bot
- Select the applications tab, then click on
New Application
- Choose a name, agree to the terms and services (only if you agree), then select
create
. - Go to the
Bot
tab and select theReset Token
button. Copy the token and paste it into yourconfig.py
file.
- Ensure these permissions match.
- Invite the Discord Bot to your server with the
administrator
box marked:
We don't provide release versions. To get the latest version, simply perform git pull
.
Angie Tran & Diego Cid
This project is licensed under the MIT License - see the LICENSE.md file for details
- README.md inspiration from KOOKZ