This command lets the user (either the TAs or professor) to add a reminder to the discord channel.
New in project two, this command now provides the runner with a command that will allow them to add the due date to the google calendar programmatically.
The code that implements the above mentioned gits functionality is located here.
duedate(self, ctx, coursename: str, hwcount: str, *, date: str):
This function takes as arguments the values provided by the constructor through self, context in which the command was called, name of the course, name of the deadline, and the date and time when the deadline is due.
Let's say that you are in the server that has the Classmate Bot active and online. All you have to do is enter the command 'duedate' pass in all the parameters as a space seperated inputs in the following order: coursename, deadline name, duedate (in MMM DD YYYY optional(HH:MM) optional(timezone) format)
$addhw CLASSNAME NAME MMM DD YYYY optional(HH:MM) optional(timezone)
$addhw CSC510 HW2 SEP 25 2024 17:02 EST
Successful execution of this command will add the reminder for the specified coursework on the specified time.