mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-15 08:32:41 +00:00
Two changes that were running in prod but hadn't been committed: 1. Sender-private DM routing. When a player invokes a holdem command from their DM, the dispatcher rewrites ctx.RoomID to the game room so actions affect the right table. But sender-private replies (errors, help, status, "unknown command") would then post to the public games room instead of back to the DM that asked. Now: the dispatcher saves ctx.OriginRoomID = the DM, and a new reply() helper routes sender- private messages to OriginRoomID when set, falling back to in-thread reply otherwise. (OriginRoomID was added to MessageContext earlier.) 2. broadcastDM jitter. 150-400ms sleep between sends to avoid Matrix rate-limit bursts when a game has 4+ players each in their own DM. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
32 KiB
32 KiB