Your mission
A virtual-currency lottery with a checked draw schedule, ticket cap and payout split. This workshop uses a small first rollout so you can see the complete result before opening it to the whole community. The example is a starting recipe; keep your server's own rules and audience in mind when choosing the final values.
Step 1: Prepare your server
Open your server dashboard and select the correct server, then open Lottery. Enable the feature before running the example. Enable Bank, choose managers and a lottery channel. Use a small ticket price for the trial and explain that tickets spend server currency.
Read Roles and permissions if a destination or role cannot be selected. For channel-based actions, check permissions in the actual channel, including its category overrides. For automatic role changes, the bot needs Manage Roles and a position above the role it will assign. Only grant the permissions needed by your chosen workflow.
Step 2: Build your first working example
1. Configure the draw
Choose recurrence, local draw hour, ticket cap, burned share, house bonus and winner split. The split percentages should describe the intended distribution of the available prize pool.
2. Test participation and closing
Buy tickets from eligible members, inspect the pot and let the test draw finish. Check minimum participants and rollover behavior; an underfilled draw may not behave like a completed draw.
After changing the server-wide settings, use Save changes. An item editor, draft, preview or test action is a separate part of the workflow: read its save or publish action before expecting a public Discord post. Reopen the saved item to confirm the destination, access rules and values you intended.
Step 3: Understand the settings
Initial values below describe a new configuration. Your server may already have different saved values. A field with no initial value is chosen in its editor. Optional sections can stay inactive until the basic setup works. Empty and zero do not have one universal meaning; use the explanation for that specific field.
General
| Setting | Initial value | What it changes and how to use it |
|---|---|---|
| Lottery channel | Not set | Needs View, Send Messages and Embed Links. |
| Ping role | Not set | Mentioned when a draw opens and with the results. |
| Lottery managers | No entries | Besides Manage Server: may start, draw and cancel with /lottery. up to 25 entries. |
| Start the next draw automatically | On | Right after each draw a new one opens. Off = staff start draws with /lottery start or here. |
| Ticket price | 100 | Set ticket price within the accepted range. Keep the initial value for the first trial, then change it after checking the result. 1–1000000000; whole numbers. |
| Max tickets per member | 10 | Keeps whales from buying the whole pot. 1–10000; whole numbers. |
| Burn share of sales | 10 | Removed from the economy every draw — a healthy coin sink. 0–90; whole numbers. |
| Split | 100 | Prize per place, % of the pot (sum 100). 1–10 entries. |
| House bonus per draw | 0 | New coins the server adds to every pot (paid only when won). 0–1000000000; whole numbers. |
| Roll over unwon pots | On | When nobody plays (or too few), the bonus moves into the next draw. |
| Minimum players | 2 | Fewer at draw time → the draw is cancelled and everyone refunded. 1–100; whole numbers. |
| DM the winners | On | A short private message with the prize (skipped when DMs are closed). |
| Panel colour | #F5B83D | Appearance of this part of the card or interface. A color change does not change eligibility or permissions. |
Schedule
| Setting | Initial value | What it changes and how to use it |
|---|---|---|
| Schedule → How often | weekly | Choose how schedule · frequency behaves from the supported options. Options: daily, weekly, monthly. |
| Schedule · weekday | 5 | 0 = Sunday … 6 (weekly). 0–6; whole numbers. |
| Schedule → Day of the month | 1 | 1–28, so every month has it. 1–28; whole numbers. |
| Schedule → Draw hour | 20 | Server time zone (Settings → time zone). 0–23; whole numbers. |
Step 4: Configure the items inside this feature
Server-wide settings and individual entries serve different purposes. These tables describe the selected entry editors. Set up one complete entry first, save it, and confirm it works before adding the rest. Fields for an alternative type apply only when that type is selected.
Start
| Setting | Initial value | What it changes and how to use it |
|---|---|---|
| Draws at | Not set | Set draws at in the editor. Check it alongside the other fields in this section before saving. |
Test the whole journey
- Buy trial tickets and compare the debit, member ticket count and prize pool.
- Inspect the draw result, winner split, burn and any rollover.
- Repeat the relevant member action with an ordinary member account and the staff action with your intended staff role. An administrator test alone can hide permission restrictions. Check both the response in Discord and the saved record or result in the dashboard.
- Change one setting that affects the result, save it, and repeat the same test. Record the previous value so you can restore it if the new behavior is not what you wanted.
Follow the complete workflow
1. Turn on the Bank and Lottery
Open your server dashboard, choose your server, make sure the Bank is on, then turn on Lottery in the Engagement section and pick the channel for the draw panel.
2. Set the rules
Choose the schedule, ticket price, tickets per member, burn share, minimum players and the prize split. The pot calculator and a live preview of the Discord panel update as you type.
3. Members buy tickets
The panel shows the pot, ticket price, tickets sold and prizes. Members buy with the buttons or /lottery buy and check their chances with /lottery info.
4. The draw pays out
At the draw time winners are picked, paid straight into their balance and announced in the channel, with an optional DM. Past results are in /lottery history and the dashboard.
Operation and behavior in detail
A coin sink members actually enjoy
Most economies print more coins than they remove. A lottery with a burn share removes coins with every draw, and members see it as a game rather than a tax. Every purchase, prize and refund is a Bank ledger entry, and the draw happens exactly once even if the bot restarts at the wrong moment.
Lottery is about virtual coins only: the bot never sells coins, tickets or prizes. Because a lottery for coins that can be bought with money would be gambling, Lottery is blocked in servers that sell coins for real money. Staff with Manage Server or a lottery manager role can start, draw or cancel draws, and Flows can react to wins or hand out free tickets.
/lottery buy,/lottery info,/lottery history: tickets, your chances and past winners/lottery start,/lottery draw,/lottery cancel: staff controls (cancel refunds everyone)
Diagnose actual bot responses
Use the response to identify the failing stage before changing settings. The messages below are referenced by this feature’s current handlers. Values in square brackets represent the member, amount, time or other live detail supplied in Discord; they are not text to enter. Different actions can use different guards, so this list is a diagnostic reference, not a claim that every message appears in every workflow.
| Response or condition | Admin investigation and next step |
|---|---|
| No lottery draw is open right now. | Match this response to the affected action and its current record. Compare the selected target, saved configuration and expected result; confirm what completed before retrying a state-changing action. |
| That draw doesn’t exist any more. | Locate the referenced item, channel, member or record in this server. Correct a deleted destination or stale selection instead of creating unrelated replacements. |
| You can buy only [left] more ticket(s) in this draw (max [max]). | Match this response to the affected action and its current record. Compare the selected target, saved configuration and expected result; confirm what completed before retrying a state-changing action. |
| You already hold the maximum of [max] tickets. | Open the existing record and confirm its current result before creating a replacement. An already-completed response can indicate that the first action succeeded. |
| You don’t have enough coins for that. | Inspect the selected wallet or available item units, including fees and resources held by other live operations. Recalculate the full cost before retrying. |
| The Bank is off on this server, so tickets can’t be bought. | Match this response to the affected action and its current record. Compare the selected target, saved configuration and expected result; confirm what completed before retrying a state-changing action. |
| Only lottery managers can do that. | Check the actor’s Discord permissions and the feature’s configured staff roles. Test the intended member and staff paths separately; a server administrator can mask missing role access. |
After a correction, repeat the original action with the affected member permissions and inspect its final state. For a reward, payment, role change or public post, verify what already completed before applying a manual replacement. Keep the record identifier and response in your staff notes so a second admin can follow the same incident.
When something looks wrong
| Symptom | What to inspect | How to recover |
|---|---|---|
| The pot differs from ticket sales | Burn percentage, house bonus and rollover from the previous draw. | Reconcile those components before making a manual adjustment. |
| The saved setup produces no visible result | Whether the feature is enabled, the required action has actually happened, and the selected destination still exists. | Follow the worked example once, then inspect the response before retrying. A saved configuration alone does not perform every action. |
| Staff can use it, but an ordinary member cannot | Member eligibility, selected roles, channel overrides and Discord command permissions. | Test with the affected role combination. Correct the specific restriction and test again. |
| A role, reward or message is missing | The related feature, destination permissions and the result of the original action. | Confirm what already completed before repeating an action that spends currency, sends a message or grants a reward. |
Feature-specific questions
How do I make a lottery on Discord?
Turn on the Bank and Lottery in your server dashboard, pick a channel and a schedule and set the ticket price. The panel appears in the channel and draws open and pay out by themselves.
Is this real gambling?
No. Tickets are bought with virtual server coins that can’t be bought from the bot or cashed out, and Lottery is blocked in servers that sell coins for real money.
What happens if not enough people join?
If fewer members than your minimum bought tickets, the draw is cancelled and every ticket is refunded. If nobody bought a ticket, the pot can roll over to the next draw.
How are winners picked?
Randomly, weighted by the number of tickets each member holds, with no member winning twice. The seed of every draw is stored, so the result can be checked in the dashboard.
Why is part of the ticket sales burned?
The burned share leaves the economy for good, which slows inflation. You choose it from 0 to 90 %.
Launch checklist
- Buy trial tickets and compare the debit, member ticket count and prize pool.
- Inspect the draw result, winner split, burn and any rollover.
- The saved setup and the actual Discord result match the example you chose.
- A regular member and the intended staff role can complete their respective steps.
- Optional rewards, notifications and public destinations are intentional.
- Another admin knows which settings to change, how to inspect a result and how to stop or correct the workflow.
Share Lottery basics with someone who needs an overview. Use the command reference below for exact command names and required options.
Commands for this feature
| Command | What it does | Options |
|---|---|---|
/lottery buy | Buy lottery tickets with coins | tickets optionalHow many tickets (default 1)Whole number · Minimum: 1 · Maximum: 100 |
/lottery info | The current draw and your tickets | No options |
/lottery history | Recent draws and winners | No options |
/lottery start | Staff: open a new draw now | No options |
/lottery draw | Staff: draw the open lottery now | No options |
/lottery cancel | Staff: cancel the open draw (refunds everyone) | No options |