This is a handy discord bot for college-related functionality such as information about classes, professors, and general statistics.
- Search college class data such as subjects, courses, classes, and seats (powered by OpenCourseAPI)
- Search professors, including ratings
- Search class grade distributions
- Search ASSIST transfer reports
- Search UC Transfer Statistics
The commands and features of the bot are split accross two separate bots, which run on Python 3+ and Node.js respectively.
Install Node.js v12+
and npm
, and then install packages with:
npm install
Install Python 3.7+
and poetry
, and then install packages with:
poetry install
Create a file called .env
with the following content:
BOT_TOKEN=<discord bot token>
BOT_OWNERS=<comma separated Discord user IDs>
BOT_PREFIX=<command prefix>
Run the following command to start both bots:
poetry shell
npm start
Use the following commands to lint the code:
npm run lint # only check
npm run lint:fix # check and fix
poetry shell
black ./bots/py # check and fix errors
All contributions are welcome! Feel free to get started by opening an issue or pull request.