My Discord blackjack bot allows users to play blackjack directly within their Discord server. It manages the full game logic, user interactions, and keeps track of each session’s state. The bot is fully coded in Python, utilizing libraries like discord.py for Discord communication and sqlite3 for database management.


One of the more challenging parts was accurately handling the logic for blackjack, particularly how aces can be worth either 1 or 11 depending on the hand. I’m proud of how the bot interprets and manages card values, player choices, and dealer moves to simulate a realistic blackjack experience. It also includes a coin-flip game where users can put up a set amount of balance and have a 50/50 chance to double it.


The bot features an interactive user interface using Discord embeds with buttons for actions like Hit or Stick, making it engaging and easy to use. It tracks player data using an in-memory SQL database, allowing users to accumulate money, save stats, and compete on a dynamic leaderboard.



To view the project, please visit the GitHub Repo.

/BlackjackBot/>