Flow reference: Plugins
Casino Game
Bet coins on coin flip, dice, slots, roulette, blackjack or video poker. Blackjack and poker answer with their own buttons (Economy plugin).
Bet coins on coin flip, dice, slots, roulette, blackjack or video poker. Blackjack and poker answer with their own buttons (Economy plugin).
When and how to use it
Connect the input from the preceding step on the path that should perform this operation.
Fill the fields with data available in the trigger's context.
Connect the needed outputs; an unconnected path cannot run later blocks.
Configuration fields
Game — game
Choose the supported economy game. Required choices and interactive buttons depend on that game.
Input: Fixed choice.
Default:
coinflip.Available choices (preserve the exact value):
coinflip — Coin flip (×2)dice — Dice duel (×2)slots — Slots (up to ×50)roulette — Roulette (×2 / ×3 / ×36)blackjack — Blackjack (buttons)poker — Video poker (buttons)Player (blank = who ran it) — user
Choose the target user. {user} may be a command's selected user; {author} is the caller. Use an ID or the variable picker rather than a display name.
Input: Text.
Default: ``.
Bet (number, half or all) — bet
Amount of internal economy coins to stake. Validate the member's balance and your intended maximum before allowing play.
Input: Text with variable suggestions.
Default:
{bet}.Choice (coin: heads/tails · roulette: red, black, odd, 17…) — choice
The member's selected prediction or game choice. It must be accepted by the chosen game.
Input: Text with variable suggestions.
Default: ``.
Store as — storeAs
Choose a short result prefix such as result. Later blocks must use this same prefix and run after this block. It is not a Discord channel or a persistent table.
Input: Text.
Default:
casino.Outputs and next steps
ok: The operation succeeded.started: The operation started; connect its intended continuation.failed: The operation failed; provide a safe error response.Read the result after this block, using its configured prefix and the fields supported by the selected operation. Do not assume every response has a text or id field.
Test and troubleshoot
Install the corresponding plugin and configure its required accounts, channels and secrets. Test an API read before a write operation. An external-service error is not a reason to recreate the whole bot.
Save, validate and publish. Perform one real test and read the first relevant log error. [Testing](/docs/flow-testing) · [Variables](/docs/flow-variables) · [Permissions](/docs/flow-permissions).
Save, validate and publish. Perform one real test and read the first relevant log error. [Testing](/docs/flow-testing) · [Variables](/docs/flow-variables) · [Permissions](/docs/flow-permissions).