This command lets the user update the homework due date for specific course and homework.
The code that implements the above mentioned gits functionality is located here.
changeduedate(self, ctx, classid: str, hwid: 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 homework, and the updated date and time.
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 '$changeduedate' and pass in all the parameters as a space seperated inputs in the following order: coursename, homeworkname, updated duedate (in MMM DD YYYY optional(HH:MM) format)
$changeduedate CLASSNAME HW_NAME MMM DD YYYY optional(HH:MM)
$changeduedate CSC510 HW2 SEP 25 2024 17:02
Successful execution of this command will update the reminder for the specified coursework and homework on the specified time.