Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
glarawyn [2008/01/21 20:37]
Glarawyn
glarawyn [2013/09/12 22:49] (current)
Line 1: Line 1:
 +====== 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 ====
 +
 +<code php>​function new_vote(str $question, array $options, int $duration, str $outchan="​both",​ bool $changable=FALSE)</​code>​
 +Creates a new vote.
 +
 +<code php>​function extend_vote(int $voteid, int $seconds)</​code>​
 +Extends duration of a running vote.
 +
 +<code php>​function cast_vote(string $player, int $voiteid, int $choice)</​code>​
 +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: 2013/09/12 22:49 (external edit)
[unknown button type]
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
WikiForumIRCBugs
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki