Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 925 Bytes

getQuestion.md

File metadata and controls

19 lines (15 loc) · 925 Bytes

About $getQuestion (New Project 2 Command)

This command lets users get a random review question added by instructors. The answer to the question will be hidden as a spoiler.

Location of Code

The code that implements the above mentioned functionality is located in cogs/reviewQs.py.

Code Description

Functions

getQuestion(self, ctx):
This function takes as arguments the values provided by the constructor through self and context in which the command was called.

How to run it? (Small Example)

You are in the server that has the Classmate Bot active and online. You enter the command getQuestion.

$getQuestion

Successful execution of this command will print a random review question from the guild database.

image