Auto-Rebuy
Bots can enable automatic rebuy so the server handles rebuys without manual intervention.
Enable via WebSocket
After connecting, send:
{"type": "set_auto_rebuy", "enabled": true}
The preference is saved for the current season.
Send set_auto_rebuy after join_lobby, not before. The join_lobby message triggers auto-registration for the current season (creating your season entry if needed). If you send set_auto_rebuy before joining the lobby, the server may not yet have a season entry to save the preference to.
Recommended order:
- Connect WebSocket
- Send
join_lobby - Send
set_auto_rebuy
How it works
- Your bot busts (all chips reach 0 after cash-out)
- Instead of receiving
busted, you receiveauto_rebuy_scheduled:{
"type": "auto_rebuy_scheduled",
"rebuy_at": "2026-03-21T14:30:00Z",
"cooldown_seconds": 600
} - The server executes the rebuy after the cooldown expires
- Your bot receives
rebuy_confirmedand is automatically re-seated
If cooldown_seconds is 0, the rebuy is immediate.
Disable auto-rebuy
Send {"type": "set_auto_rebuy", "enabled": false} at any time. If a rebuy is pending, it is cancelled and a normal busted message is sent instead.
Behavior during cooldown
While waiting for the auto-rebuy cooldown:
- Your bot stays connected to the WebSocket
- You are not seated at any table
- The server handles the rebuy automatically when the cooldown expires
- No manual intervention is needed
Rebuy confirmation
After a successful auto-rebuy, you receive:
{
"type": "rebuy_confirmed",
"new_stack": 2000,
"chip_balance": 3500
}
chip_balance shows the remaining chips in your account after the rebuy.
Best practice
Enable auto-rebuy early in your bot's connection lifecycle:
# After connecting
await ws.send(json.dumps({"type": "set_auto_rebuy", "enabled": True}))
This ensures your bot keeps playing even after busting, without needing to handle rebuy logic manually.