This project is based on the discord-course-notifier (archived) webhook.
Currently, this bot only supports fetching information for the New Brunswick campus of Fall 2021.
It would be a waste of time searching through a large dump file every time a course is added to notify. The MongoDB database ingests only necessary information (and some optional values for future enhancements) for fast access times.
This script is available here.
Run python3 ingest_db.py --help
for arguments.
Once the MongoDB cluster has been populated:
- Fill in the values in
SAMPLE.env
and removeSAMPLE
from the filename. - Run:
npm install
- Start the bot:
npm start
Rutgers uses the following endpoints in the Schedule of Classes:
https://sis.rutgers.edu/soc/api/courses.json?year=YEAR&term=TERM&campus=CAMPUS
Responds with a list containing index numbers for open sections.
https://sis.rutgers.edu/soc/api/openSections.json?year=YEAR&term=TERM&campus=CAMPUS
TERM
(Integer):
1
- Spring7
- Summer9
- Fall0
- Winter
Don't ask me why these numbers are random.
YEAR
(Integer)
- A year.
CAMPUS
(String):
NB
- New BrunswickNK
- NewarkCM
- CamdenONLINE_NB
- New Brunswick - Online and Remote Instruction CoursesONLINE_NK
- Newark - Online and Remote Instruction CoursesONLINE_CM
- Camden - Online and Remote Instruction CoursesB
- Burlington County Community College - Mt LaurelCC
- Camden County College - Blackwood CampusH
- County College of MorrisCU
- Cumberland County CollegeMC
- Denville - RU-MorrisWM
- Freehold WMHEC - RU-BCCL
- Lincroft - RU-BCCAC
- Mays Landing - RU-ACCCJ
- McGuire-Dix-Lakehurst RU-JBMDLD
- Mercer County Community CollegeRV
- North Branch - RU-RVCC
The source code for this project is licensed under the MIT License.