GamblingBot

A sophisticated Discord bot that brings exciting gambling mechanics to your server. Manage balances, place bets, and compete on leaderboards.

Key Features

Balance System

Each user starts with 100 coins. Balances are persistent and stored securely in JSON format.

50/50 Betting

Place bets and let fate decide! Win or lose, the excitement is always present.

Leaderboard

Compete with others! View top 3 richest players and track your position.

Admin Controls

Server owner can distribute coins and manage the economy with admin commands.

Data Persistence

All balances and transactions are automatically saved and recovered.

Docker Ready

Easily containerized for deployment. Deploy anywhere with Docker support.

Bot Commands

!balance

Check your coin balance

> !balance
@User, your balance is 150 coins.

!bet <amount>

Place a 50/50 bet

> !bet 50
@User, you won 50 coins! 🎉

!leaderboard

View top 3 richest players

> !leaderboard
**Top 3 richest:**
@Player1: 500 coins
@Player2: 350 coins
@Player3: 200 coins

!give @user <amount>

Admin: Give coins to user

> !give @User 100
Transferred 100 coins to @User

Tech Stack

C#

.NET 8.0

Discord.Net

3.17.1

Docker

Containerized

JSON

Data Storage

How It Works

1

Join Your Server

Invite the GamblingBot to your Discord server and enable it in a designated channel.

2

Get Starting Balance

Each user automatically receives 100 coins when they first interact with the bot.

3

Place Your Bets

Use !bet to wager coins. Win or lose based on a 50/50 chance - it's all about luck!

4

Compete & Climb

Check the leaderboard to see where you rank among the richest players on your server.

5

Data Persistence

Your balance is automatically saved and persists across sessions. Never lose your coins!

4

Core Commands

50/50

Betting Odds

100

Starting Coins

C#

.NET 8.0

Ready to Add Some Excitement to Your Server?

Deploy GamblingBot and start the fun today!