Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 1.36 KB

edit_grade_category.md

File metadata and controls

26 lines (19 loc) · 1.36 KB

About $edit_grade_category (New Project 2 Command)

This command allows the instructor to edit an existing grade category with a designated weight

Changes

This command was introduced by CSC510-Group-1.

Location of Code

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

Code Description

Functions

edit_grade_category(self, ctx, categoryname: str, weight: str):
This function takes as arguments the values provided by the constructor through self, context in which the command was called, the name of the category being edited, and the weight of the category being edited.

How to run it? (Small Example)

You are in the server that has the Classmate Bot active and online. You are an Instructor. From the instructor commands channel, enter the command $edit_grade_category <category_name> <weight> with the desired category name and weight.

$edit_grade_category CATEGORY_NAME, WEIGHT
$edit_grade_category Tests, .5

Successful execution of this command will edit a grade category in the database with the new desired weight. The bot will report on the success or failure of the command.