3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-26 12:42:51 +01:00
dbot/modules/poll
2013-06-21 17:38:17 +00:00
..
commands.js add web api function for getUrl instead of string in base, use externalAddress optional config key to define external behaviours [#264] 2013-04-12 22:53:45 +00:00
config.json revert poll syntax error >.< 2013-01-24 10:08:05 +00:00
pages.js Automatically look for modules with root indexes and show those on the index [Close #427] 2013-04-30 19:33:26 +00:00
poll.js hook for update poll nicks [#158][#166] also change mergeusers return api 2013-01-20 20:22:27 +00:00
README.md Documentation for polls [#75] 2012-12-30 18:38:36 +00:00
strings.json Update strings.json 2013-06-21 17:38:17 +00:00
usage.json loaded strings and usage from the modules themselves in reloadModules. some other smaller changes. fixed the syntax of the usage json. careful though this dbot init may delete your database. 2012-12-11 20:06:29 +00:00

Poll

Pollers gonna poll.

Description

This module allows creation of and voting in polls, with associated functionality.

Note that while in terms of the interface all votes are anonymous, users voting choices are stored in the database for the purpose of users being able to change their votes. Therefore an admin can technically go delving in the database to see users voting choices.

Commands

~newpoll [pollname] options=[each,poll,option] [Poll Description]

Creates a new poll with the given name, options and descriptions. From this point people will be able to use the ~vote command to cast their vote in the poll.

~addoption [pollname] [newoption]

Using this command you can add a given option to a poll you are the creator of.

~rmoption [pollname] [optiontoremove]

Using this command you can remove a given option from a poll you are the creator of.

~vote [pollname] [option]

Cast your vote for the given option in the given poll. If you have already cast your vote in the given poll, your vote will be changed to the new option you have provided.

~pdesc [pollname]

Show the full description for a given poll name along with its available voting options.