Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.15 KB

showResourceByTopic.md

File metadata and controls

28 lines (19 loc) · 1.15 KB

About $showResourceByTopic

A command that will enable everyone to get the list of resources for a specific topic. Rather than retrieving all the resources, the user can retrieve a list of resources in a particular topic.

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

showResourceByTopic(ctx, topic_name)::
This function takes as arguments the context in which the command was called and the name of the topic for which the resources link will be retrieved.

How to run it? (Small Example)

You are on the server that has the Classmate Bot active and online. You go to the channel and enter the command $showResourceByTopic topic_name

$showResourceByTopic Testing 

Successful execution of this command will return the resources associated with the topics