Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.24 KB

poll.md

File metadata and controls

31 lines (21 loc) · 1.24 KB

About $poll (New Project 3 Command)

This command allows the user to create a simple reaction poll with thumbs up, thumbs down, and unsure reactions.

Changes

This command was introduced by CSC510-Group-25.

Location of Code

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

Code Description

Functions

poll(self, ctx, *, qs=''):
This function takes as arguments the values provided by the constructor through self, context in which the command was called, and a question qs.

How to run it? (Small Example)

You are in the server that has the Classmate Bot active and online. From any channel, enter the command $poll QUESTION.

$poll QUESTION
$poll What do you think about cats?

Successful execution of this command will create a reaction poll.

Note: BananaBot is also a ClassMateBot