TurqW / LongSphinx

Discord bot made to help with role management and RPG playing. Name inspired by the Terra Ignota series by Ada Palmer.
5 stars 3 forks source link

Polling #93

Open diziara opened 3 years ago

diziara commented 3 years ago

It would be hella cool if we could set up a reaction based poll through the bot where it would automagically total up the results after a set amount of time. Ideally the time out would be optionally adjustable and default to something like a day but could be as short as a few minutes maybe?

TurqW commented 3 years ago

Some limitations/questions:

  1. To be able to limit to 1 choice per person, the bot will need the "manage messages" permission in the channel the poll is in (because that permission is necessary to remove the extra reactions)\
  2. Reactions will all have to be emoji that the bot has access to. For ease of validation, that probably means restricting them to default emoji + the current server.
  3. Should answers be "anonymous" (reactions deleted as soon as they're received, with the vote tallied) or should the reactions be left up and just counted at the end? (note that the 'anonymous' option still wouldn't be 100% secrecy guaranteed, as there would be a slight delay between the reaction being added and it being removed)
  4. If it's anonymous, should there be a way to view results before the time is up? At the very least, a count for number of votes received (so that people can see it increment and know their vote isn't just being deleted)?
diziara commented 3 years ago
  1. 👍
  2. 👍
  3. Can this be a flag in the command? Default to one and allow the poll command to specify if they want the other? Like default to everyone can view votes, but have -anon switch it?
  4. If toggleable, I don't think anon needs to show the running results. If not toggleable, can it edit the running total into the message?