-
Notifications
You must be signed in to change notification settings - Fork 2
Lottery Plugin
Innocent Bystander edited this page Feb 16, 2015
·
2 revisions
Requires Plugin: lottery
Note: Lottery will work across syncouts/syncrooms and persist through bot restarts.
You can draw things in a lottery using the /me
prefix:
/me draw[s] [a|an] <thing>
- Bot will get a random from a box.
- The box must be "prepared" first (see Bot Commands below).
- Used for user lotteries
-
draw
-ing without a<thing>
will always fetch an item from the default lottery/box (if its prepared). To draw from another box,<thing>
must be supplied. - Bot keeps tracks of people who have already participated in the draw.
- Trying to draw again will make the bot remind you of your previous results.
Administrators can ready a lottery for users to draw from using the following command:
/bot prepare [<things>] <listdef>
- Bot prepares a list of
<things>
and puts them in a virtual box for lottery drawings.- If
<things>
is not supplied, then "default" will be used.
- If
-
<listdef>
can be:- comma-separated list of values (no spaces!) e.g.
abc,ghi,xyz
- range of numbers e.g. 50-100
- "numberTokens" e.g. 9long1short
- comma-separated list of values (no spaces!) e.g.
- Each user must issue
/me draws
(or similar) to get a random item from the box. Note:/me draw
always draws from "default" if available; to draw from another box,/me draw [a|an] <thing>
Plugin List | Developer Reference: [ Intro | Plugins | Sinks | In-built Functionality | [Configuration] (Configuration) ]