From 5af2015d463bd50c3a5bfd54a2e2410a8ca97165 Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Tue, 9 Dec 2025 23:21:52 -0600 Subject: [PATCH] Updated the message detection code so it'll give up straight away if the status is bad --- KfChatDotNetBot/Commands/Kasino/LambchopCommand.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/KfChatDotNetBot/Commands/Kasino/LambchopCommand.cs b/KfChatDotNetBot/Commands/Kasino/LambchopCommand.cs index 55fb520..3d19b69 100644 --- a/KfChatDotNetBot/Commands/Kasino/LambchopCommand.cs +++ b/KfChatDotNetBot/Commands/Kasino/LambchopCommand.cs @@ -112,9 +112,11 @@ public class LambchopCommand : ICommand var lambChopDisplayMessage = await botInstance.SendChatMessageAsync(ConvertLambchopFieldToString(tiles, hazards, true), true, autoDeleteAfter: cleanupDelay); - while (lambChopDisplayMessage.Status != SentMessageTrackerStatus.ResponseReceived) + while (lambChopDisplayMessage.ChatMessageId == null) { await Task.Delay(50, ctx); // wait until first message is fully sent + if (lambChopDisplayMessage.Status is SentMessageTrackerStatus.Lost or SentMessageTrackerStatus.NotSending) + return; } for (int i = -1; i <= steps;) // main game loop, if/else "state machine"