Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 1.2 KB

pin.md

File metadata and controls

22 lines (18 loc) · 1.2 KB

About $pin (Modified Command in Project 2)

This command lets the student to pin a message from the discord channel to their private pinning board.

Location of Code

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

Code Description

Functions

addMessage(self, ctx, tagname: str, *, description: str):
This function takes as arguments the values provided by the constructor through self, context in which the command was called, tagname of the pinned message, and the description of the pinned message.

How to run it? (Small Example)

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 'pin' pass in all the parameters as a space separated inputs in the following order: tagname and description.

$pin TAGNAME DESCRIPTION
$pin HW https://discordapp.com/channels/139565116151562240/139565116151562240/890813190433292298 HW8 reminder

Successful execution of this command will pin the message for the specific user.

image