-
Notifications
You must be signed in to change notification settings - Fork 28
Polls (User Votes)
Botnak can only have one poll at a time. Starting two polls would result in an error, and cause utmost confusion in chat.
Format is as follows:
!startpoll (time limit) (Options...)
where
(time limit) is the parameter for how long before the poll expires and closes. Defaults to a minute.
(Options...) is a "]"-separated list of options to vote for.
Example:
!startpoll 2m Half-Life 2]Portal]Left 4 Dead]Just Code
would start a poll that lasts two minutes and has the options
1. Half-Life 2
2. Portal
3. Left 4 Dead
4. Just Code
For a user to vote, they would simply type
!vote (number option)
So for the previous example's poll, doing
!vote 1
would vote for Half-Life 2.
Users would be able to only vote for an option once, but could be able to change their vote, provided they do so before the poll is closed.
Anybody is allowed to vote in user polls, if you want sub only, make the chat sub only mode for it.
To get the results of a vote, a mod can type
!pollresult
to get the results.
For example, doing
!pollresult
would make Botnak output the results to the poll:
The result to the poll are:
Half-Life 2: 42/69 (60%)
Portal: 12/69 (17%)
Left 4 Dead: 10/69 (14%)
Just Code: 5/69 (7%)
NOTE: If there was no time limit specified in creating the poll, Botnak will automatically output the winning result after a minute. Otherwise, Botnak will output the winning result after the specified time. Calling the result before the end will not close the poll!
If for some reason the options are messed up or you don't feel like having a poll anymore, a cancel would be as simple as:
!cancelpoll
Botnak will not output any of the results, and will stop taking votes for the poll.