Custom Modules by Glarawyn

Vote Core

Vote core is a core module for managing voting and recording votes. It provides the vote command, which will record votes. It does not provide an in game interface for creating votes.

Vote Core Functions

function new_vote(str $question, array $options, int $duration, str $outchan="both", bool $changable=FALSE)

Creates a new vote.

function extend_vote(int $voteid, int $seconds)

Extends duration of a running vote.

function cast_vote(string $player, int $voiteid, int $choice)

Casts a vote.

Using Vote Core In other modules

Vote Core Limitations

  • Your vote must have 60 or less options. If that isn’t enough you should consider narrowing your poll’s focus. :)
  • Active votes are not maintained over bot restarts, so you shouldn’t have a long term vote.
  • One character, one vote. Players cannot select multiple options.
  • Alts are not considered in voting so a player could vote twice if they vote once for each alt that has access to the bot.
 
glarawyn.txt · Last modified: 2008/01/21 14:40 by Glarawyn
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki