This command lets instructors add review questions to the system.
The code that implements the above mentioned functionality is located in cogs/reviewQs.py.
addQuestion(self, ctx, qs: str, ans: str):
This function takes as arguments the values provided by the constructor through self, context in which the command was called, the question string, and the answer string.
You are in the server that has the Classmate Bot active and online. You enter the command addQuestion
and type the question and answer in separate quotes.
$addQuestion "QUESTION" "ANSWER"
$addQuestion "What class is this?" "CSC510"
Successful execution of this command will add a review question to the database and return a success message.