{"repo":"ConnorSwis/casino-bot","free":true,"listed":false,"github":"https://github.com/ConnorSwis/casino-bot","clone":"git clone https://github.com/ConnorSwis/casino-bot.git","description":"A casino discord bot written in Python","language":"Python","stars":84,"topics":["discord","bot","python","casino","casino-games","blackjack","blackjack-python","discord-py"],"license":"MIT","category":"chat-messaging","readme_excerpt":"Casino Bot Casino bot is a gambling discord bot I made for my friends. It is able to play blackjack, slots, flip a coin, and roll dice. It stores everyone's money on an SQLite3 database. A Discord casino bot with a FastAPI web host and interactive demo UI. It supports: - Blackjack (reactions for hit/stand/double/split/surrender, insurance, split hands) - High card ( highcard / war ) - Slots (animated GIF reels + credit economy) - Coin flip and dice roll - Wallet commands (balance, leaderboard, periodic bonus) The app starts a web server and, if configured, starts the Discord bot in the same process. Architecture - FastAPI app entrypoint: app/backend/main.py - Discord bot entrypoint: app/discord bot/bot.py - SQLite economy layer: app/discord bot/modules/economy.py - Demo UI: app/backend/static/demo/ Behavior at startup: - If DISCORD TOKEN is set, the Discord bot is launched during FastAPI lifespan startup. - If DISCORD TOKEN is missing, the app runs in web-only mode (demo still works). Requirements - Python 3.10+ - A Discord bot token (only required for Discord mode) Quick Start (Local) 1. Create and activate a virtual environment. 2. Install dependencies: 3. Copy env template and edit values: 4. Run the app: 5. Open: - http://localhost:8000/ - http://localhost:8000/demo Environment Variables Configured in .env (or process environment): - DISCORD TOKEN : Discord bot token. Leave empty for web-only mode. - DISCORD OWNER IDS : Comma-separated Discord user IDs for owner-only comm","default_branch":null,"files":null,"tree":[],"storefront":"/r/ConnorSwis","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ConnorSwis/casino-bot/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}