glarawyn

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
glarawyn [2008/01/21 20:40]
Glarawyn
glarawyn [2020/09/12 01:30] (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.
 +