Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 1 KB

leave.md

File metadata and controls

20 lines (16 loc) · 1 KB

About $leave (Modified Command in Project 2)

This command lets the student leave their current group. This is used to ensure that if a member switches groups or drops the class, then they can be removed from a group.

Location of Code

The code that implements the above-mentioned gits functionality is located here.

Code Description

Functions

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

How to run it? (Small Example)

Let's say that you are in the server or bot dm that has the Classmate Bot active and online. All you have to do is enter the command 'leave'.

$leave

Successful execution of this command will return a message saying you have been removed from the group.

image