My App
Commands

Managing Raffles

Commands for managing active raffles

/close

Manually close a raffle to stop accepting new claims.

Syntax

/close

Run this command inside the raffle thread.

What Happens

  1. Raffle is marked as closed
  2. No more ticket claims are accepted
  3. Ping service stops
  4. Thread remains open for host operations
  5. Can be reopened with /reopen

Notes

  • Does NOT select a winner (use ProBot for that)
  • Does NOT lock or archive the thread
  • Host can still manage tickets after closing
  • Requires Unity Host or Staff role

/reopen

Reopen a closed raffle to accept claims again.

Syntax

/reopen

Run this command inside the closed raffle thread.

What Happens

  1. Raffle is marked as active
  2. Users can claim tickets again
  3. Ping service restarts (if applicable)

Error Messages

ErrorCause
"This raffle is not closed"Raffle is already open
"Cannot reopen a completed and archived raffle"Raffle has been finalized

/addtickets

Add more tickets to an existing raffle.

Syntax

/addtickets count:<number>

Parameters

ParameterRequiredDescription
countYesNumber of tickets to add (1-100)

Examples

/addtickets count:5

Result: If raffle had tickets #1-#10, it now has #1-#15.

What Happens

  1. New tickets are added sequentially after existing ones
  2. Raffle embed updates to show new tickets
  3. New tickets are immediately available for claiming

Limits

  • Minimum per command: 1 ticket
  • Maximum per command: 100 tickets
  • Maximum total tickets per raffle: 500

Error Messages

ErrorCause
"This command can only be used in threads"Not in a raffle thread
"This thread is not a tracked raffle"Thread is not a valid raffle
"Cannot add tickets to an archived raffle"Use /reopen first
"Cannot exceed 500 total tickets"At maximum capacity
"Between 1 and 100 tickets"Invalid count

/changeprice

Change the ticket price for an existing raffle.

Syntax

/changeprice new_price:<number>

Parameters

ParameterRequiredDescription
new_priceYesNew price per ticket (0 for free)

Examples

Change to higher price:

/changeprice new_price:100

Make raffle free:

/changeprice new_price:0

What Happens

  1. Ticket price is updated
  2. Raffle embed refreshes with new price
  3. Display changes between "Payment to" and "Sponsored by" as appropriate

Important Notes

  • Price change affects all unclaimed tickets
  • Does NOT change what already-claimed users owe
  • Changing to 0 displays "FREE" instead of "0c"
  • Cannot be used on archived raffles

Error Messages

ErrorCause
"Price must be greater than or equal to 0"Negative price
"Cannot change price of an archived raffle"Use /reopen first

/cancelmini

Cancel a mini raffle and release its reservations in the main raffle.

Syntax

/cancelmini

Run this command inside the mini raffle thread.

What Happens

  1. Mini raffle is cancelled
  2. Reserved tickets are released back to the main raffle
  3. Mini thread is closed and archived
  4. Message posted in main raffle if reservations were released

Use Cases

  • Created mini by mistake
  • Main raffle filling faster than expected
  • Need to free up slots for regular users

/clean

Remove completed raffles from bot memory.

Syntax

/clean

What Happens

  1. Scans all raffles in memory
  2. Identifies completed and archived raffles
  3. Removes them from active tracking
  4. Reports count of cleaned raffles

When to Use

  • Bot memory usage is high
  • Many old raffles accumulating
  • Regular maintenance (weekly/monthly)

Note

This does NOT delete Discord threads—it only removes raffles from the bot's active memory.

On this page