Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.42 KB

addResource.md

File metadata and controls

32 lines (22 loc) · 1.42 KB

About $addResource

A command that lets the instructor add the resource link of course materials. Instructor only.

Changes

This command was introduced by CSC510-Group-5.

Location of Code

The code that implements the above mentioned functionality is located in resource.py.

Code Description

Functions

addResource(ctx, topic, resource_link)::
This function takes as arguments the context in which the command was called, the name of the topic for which a resource link will be added, and the resource_link itself.

How to run it? (Small Example)

You are in the server that has the Classmate Bot active and online. You go to the #instructor-commands channel and enter the command $addResource topic_name resource_link.

$addResource Testing "https://github.com/txt/se23/blob/main/docs/testing1.md"
$addResource "License in SE" "https://github.com/txt/se23/blob/main/docs/licenses.md"

Successful execution of this command will add two resources to the resource list.

This can be verified by the command $showAllResource to check if the resources have been added.