
This type of information must be obtained and processed for a constant time!!! Also, meta-data is a screen image of what is happening on game table. The similar programs is in the root of background data. The second, you must understand that "Poker Bot" is a multicomponent task, wich consist from basic parts of similar programs - main loop, game logic, GUI, data(storage, conception, processing), API, external code, and so on.Įspecially, is implement API to work with external code such as "PokerTracker". There you may find a many examples of already work code. If you base logic on equity then you don't need complex rules.Īccording to a new post this can be done with machine learning.įirst of all, explore projects on GitHub. GTO you are playing not to lose.īased on play you can adjust range of the opponents. I tried a GTO based bot but it was a disaster. Flop sizing like 1/5 is enough to throw them off. Call back about 1/3 of their bluff rate if you have a bluff catcher.Īssign an open range for each position and bet sizing. Bluffs is a little harder but if you just bluff your busted draws like 1/3 you will be pretty close.Ĭall bluffs is a little harder but you are going to get some stats on how often they bluff when you just call for equity. All you have left is bet sizing for open and re-raise. If you need 3:1 to call on a draw go with one less 2:1. Then you can just do an odds for call and give a fixed implied odds on a draw.

If you base stuff off equity it is so much easier. Or if there is variable overlap between defining message.Ĭonsidering scrapping and moving to python so any help would be greatly appreciated.I suggest you write an equity calculator first as a bot needs one. discord.js cant have two processes waiting for messages running at the same time.


Not sure if my overall approach is flawed here, i.e. When I run in the debugger it doesnt seem to enter the second client.on code block, and I recieve this error upon running FATAL ERROR: MarkCompactCollector: young object promotion failed Allocation failed - JavaScript heap out of memory

Other functionality in create decks etc works fine. this event will only trigger one time after logging in when the client is ready, run this code The idea behind these is that the first one looks for the !poker command, and subsequent ones listen for joining players, player bets etc.Ĭode: const Discord = require('discord.js') Ĭonst dotenv = require('dotenv').config() Ĭonst Game = require("./classes.js").GameĬonst Player = require("./classes.js").Player Attempting to implement texas hold em poker in discord with a bot using node js.Ĭalls.
