CUBSOFTWARE// CUB // CORRUPTED

Blackjack

!blackjack
Completed GamblingInteractive

A fully interactive blackjack card game where users bet currency to play against the dealer. Features real-time hit/stand decisions, realistic card distribution, automatic timeout, and cooldown protection.

Commands

Command Description
!blackjack [bet] Start a new blackjack game with your bet amount
!blackjack hit Draw another card (also: !blackjack h)
!blackjack stand Stand with current hand, dealer plays (also: !blackjack s)

Features

  • Interactive Gameplay - Players control their hand with hit/stand commands
  • 10-Second Timer - Auto-stands if player doesn't respond within 10 seconds
  • Instant 21 Win - Automatically stands when hitting exactly 21
  • Realistic Card Distribution - Simulates proper 52-card deck probabilities
  • Smart Dealer AI - Dealer stands at 16 (reduced bust rate)
  • Dealer Visibility - Shows each card dealer draws with running totals
  • Proper Card Display - Shows A, J, Q, K for face cards
  • Soft/Hard Ace Handling - Aces count as 11 or 1 automatically
  • Cooldown System - Prevents spam with configurable cooldown timer
  • Discord Logging - Tracks all games, wins, losses, and dealer bust rates

Configuration

Set in ConfigSetup.cs:

Variable Default Description
config_blackjack_min_bet 25 Minimum bet amount
config_blackjack_max_bet 500 Maximum bet amount
config_blackjack_win_mult 2 Standard win multiplier
config_blackjack_cooldown_seconds 30 Cooldown between games

How It Works

Starting a Game

  1. User runs !blackjack [bet] with amount between min and max
  2. Command checks cooldown (if recently played, shows time remaining)
  3. Command validates bet amount and checks user balance
  4. Bet is deducted from user balance
  5. Player draws 2 cards, dealer draws 2 cards (only 1 shown)
  6. If player has 21 (blackjack), auto-wins with 2.5x payout
  7. Otherwise, player has 10 seconds to choose hit or stand

Game Outcomes

OutcomePayout
Natural Blackjack (21 on first 2 cards)2.5x payout
Player Bust (over 21)Lose bet
Dealer Bust (over 21)Win at 2x multiplier
Player beats DealerWin at 2x multiplier
Push (tie)Bet returned
Dealer beats PlayerLose bet

Card Values

Card Value
Ace (A) 11 or 1 (automatically adjusts to prevent bust)
2-9 Face value
10, J, Q, K 10 points

Example Gameplay

Starting a Game

User:!blackjack 100
Bot:🃏 User | Your hand: K, 7 = 17 | Dealer shows: 9 | Type !blackjack hit or !blackjack stand (10s timer)

Hitting

User:!blackjack hit
Bot:🃏 User drew 3 | Your hand: K, 7, 3 = 20 | Dealer shows: 9 | Type !blackjack hit or !blackjack stand (10s timer)

Perfect 21

User:!blackjack hit
Bot:🃏 User drew A | Your hand: K, 7, 3, A = 21! 🎉 PERFECT 21! Auto-standing...

Winning

User:!blackjack stand
Bot:🃏 Dealer has: 9, 8 = 17 | Dealer stands at 17
Bot:🃏 User had 20 | Dealer ended with 17 | You win! Balance: $600

Installation

⚠
Prerequisite: You must run ConfigSetup.cs first before installing this command.

Create a new C# action in StreamerBot

Go to Actions → Add → Create new action

Copy the command code

Copy it below and paste it into the action's Execute C# Code sub-action, or download the file.

Loading the code…

Set the trigger

Add a chat command trigger with !blackjack

Test in chat

Try the command to verify it works!

← Back to All Commands