Borgli / Ohminator

Repository for the Discord bot Ohminator
http://www.ohminator.com
Apache License 2.0
4 stars 0 forks source link

Add polling #21

Open Borgli opened 7 years ago

Borgli commented 7 years ago

A nice feature that would be relatively easy to implement would be a polling function. It would work by using a command like "!poll question [time]". Then you would have to let the user add the alternatives somehow. This could maybe be done through the first command, but this could make the command pretty big, or by letting the user write new messages where each message is an alternative. When the user is done typing alternatives, the user could write "Done" or similar. The drawback to the second alternative is that it is complex and prone to errors (but it could be done elegantly).

To vote for an alternative would have to be done by using reactions. You could also implement a mode where the thumbs up emoticon would mean positive and thumbs down would mean negative, but that should probably be its own function. In the end you would have to display some sort of result screen. Embeds should work good for this, and displaying plots would be awesome if feasable!