insobot » Forums » Feature Request: Polls
Miblo
Matt Mascarenhas
94 posts
1 project

Annotator, supper gatherer and slammer of thunderous high fives

#11134 Feature Request: Polls
1 month, 3 weeks ago

We occasionally take polls during streams - notably @jon's - but that currently depends on someone trawling over to some external site first to make the poll, and then everyone else following suit to place their vote on it. I think it'd be cool if insobot could administer polls himself, allowing someone to create the poll, everyone to place their vote, and then himself to display the results right in the chat.

Bonus functionality:
  1. Poll expiry time, at which time insobot may auto-announce the result
  2. Multiple concurrent polls, identifiable by an ID (tautologous much?)
  3. Polls history, most probably /query'd to the invoker or viewable on a webpage, to avoid spamming the chat
  4. A fancy little image graphing the result, probably generated using ImageMagick's MagickWand or (more powerfully) MagickCore API
insofaras
Alex Baines
14 posts
1 project
#11144 Feature Request: Polls
1 month, 3 weeks ago

Thanks for the great idea, Miblo.
I've now implemented a preliminary version of this here.

You can create a poll with:
1
!poll+ some question? option one | option 2 | another option | etc

Close a poll with:
1
!poll- [id]

(if id isn't given, it does the most recent poll for the channel)

List polls with:
1
!poll [id]

And vote with:
1
!vote [#id] N

where N corresponds to the option's index.

I haven't yet done saving the poll data, automatic expiry, private messaging or a webpage, though those can be added later down the line.

CaptainKraft
Jeremiah
119 posts
2 projects

Father, husband, C programmer, and Linux apologist. Think before you code.

#11148 Feature Request: Polls
1 month, 3 weeks ago

Jeez, you work fast. That's a really cool feature.

Build a man a fire, he'll be warm for a day.
Set a man on fire, he'll be warm forever.