Skip to content

Discord bot for handling Texas Holde'em casino tables across different channels

Notifications You must be signed in to change notification settings

darkclif/DiscordHoldem

Repository files navigation

DiscordHoldem

DiscordHoldem is a Discord bot for handling Texas Holde'em tables across channels.

What is Discord? (Discord)

How to write Discord Bot using Python? (discord.py)

Screenshots

Game flow

How to setup the bot

  1. I assume that you already have your BOT account created (if not visit Discord Developer Panel)
  2. Create file named _token.py in main directory and put there a line token='YOUR_TOKEN' where YOUR_TOKEN is a token taken from developer panel.
  3. Add bot to your server (Here is how)
  4. Run py main.py

Commands

Command Outcome
!a init Initialize a poker table on current channel. There can be at most one table opened per channel.
!a close Close a poker table on current channel. Bot will clean up messages and delete reactions.

After init command bot will create three messages and attach available reactions to the middle message.

First and last message are for pushing information. First is dedicated to push overall information about a table (player stand or sit; game starting) Last is dedicated to push information about current game (player raise; fold; game results)

How to play

Once you created the table you can make interaction with the game by reacting to main message created by bot.

Emoji Outcome
Sit Sit at the table
Stand Stand from a table
Ready Check yourself as ready to play
Fold Fold
Check/Call Check if no bet was placed or call to current bet
Raise Raise by amount of Big Blind
All In Raise by all your money

To start playing sit at the table and check that you are ready, after period of time the game should start if there is enough ready players at the table. You will get your cards in private message. The value of current hand you get in private message will update after each game phase (flop, turn, river). If you want to leave the game uncheck the ready button and you will be excluded from next game.

TODO List

  • Make bot handle a tie rounds and rounds where there is all-in player winning the pot.
  • Optimize bot to update messages only once per request.

About

Discord bot for handling Texas Holde'em casino tables across different channels

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages