ClemBot icon indicating copy to clipboard operation
ClemBot copied to clipboard

Feature: Add Polling Functionality

Open Exper1mental opened this issue 3 years ago • 8 comments

The title says it all.

The idea is to type a command and for ClemBot to create a reaction-based poll for readers to respond to. There could be yes/no questions, true/false, yes/no/maybe, multi, etc.

e.g. !poll multi choice1 choice2 [choice3 ... choice9] ([ ] means optional arguments)

Exper1mental avatar Apr 13 '21 15:04 Exper1mental

I think this is a good idea. It could be really useful for moderation as well as for classes.

MatthewPerryDev avatar Apr 13 '21 17:04 MatthewPerryDev

I like it, it is a bit indepth as it does require a database implementation

Jay-Madden avatar Apr 13 '21 18:04 Jay-Madden

I like it, it is a bit indepth as it does require a database implementation

What is the database for? Responses are already stored as reactions by discord. Or are you talking about templates for polls?

Or is it for creating a second message reporting the results once the time has expired? (duration is also an additional input would probably need to be defined for the poll; missed that earlier)

Exper1mental avatar Apr 13 '21 18:04 Exper1mental

We would need to store the message id of all active polls and the time they end so that we can reload that on startup

Jay-Madden avatar Apr 13 '21 18:04 Jay-Madden

Would this command also support an adjustable time frame for when it expires?

MatthewPerryDev avatar Apr 13 '21 19:04 MatthewPerryDev

i mean it could but i was def say that thats out of scope and not really useful tbh

Jay-Madden avatar Apr 13 '21 19:04 Jay-Madden

i mean it could but i was def say that thats out of scope and not really useful tbh

Depends on the poll. If it is an announcement poll people will still easily see it even if it is days old. IMO being able to set duration is important but I guess it is also up to whether or not the person creating the cog wants the extra work lol

Exper1mental avatar Apr 13 '21 19:04 Exper1mental

I mean it will oc have a timeframe you could set when you run the command, you just wont be able to change that after the poll has been created

Jay-Madden avatar Apr 13 '21 19:04 Jay-Madden