-
Notifications
You must be signed in to change notification settings - Fork 10
Adding: Timetable Command #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
novanai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quite a few changes needed unfortunately sorry! I can handle the miru-based stuff as there is a specific (and somewhat complex) way for this to be done nicely.
src/extensions/timetable.py
Outdated
| ): | ||
| if resp.status == 200: | ||
| matching_fields = await resp.json() | ||
| except aiohttp.ClientError: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Errors like this should be handled in a global or command-based error handler
+ Fixed to proper Plugin Name + Improved description for plugin + Changed multi-line comments to single-line + Improved error and status code handling for command (Prevents double sending of results) + Used global client session through DI
This pull request introduces the Timetable command, which connects to the service at https://timetable.redbrick.dcu.ie/. This feature allows users to access information about all courses, modules, locations, clubs, and societies through the blockbot. It also provides users with a link to connect their calendar and an option to download the ICS file.
Closes #69