mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Update for new chyat
This commit is contained in:
@@ -269,11 +269,11 @@ public class MinesCommand : ICommand
|
||||
|
||||
var lastmsg = KasinoMines.ActiveGames[gambler.Id].LastMessageId;
|
||||
SentMessageTrackerModel msg;
|
||||
if (lastmsg == 0)
|
||||
if (lastmsg == null)
|
||||
{
|
||||
msg = (await botInstance.SendChatMessageAsync($"{KasinoMines.ActiveGames[gambler.Id].ToString()}", true));
|
||||
await botInstance.WaitForChatMessageAsync(msg, ct: ctx);
|
||||
if (msg.ChatMessageId == null) throw new InvalidOperationException("Timed out waiting for the message");
|
||||
if (msg.ChatMessageUuid == null) throw new InvalidOperationException("Timed out waiting for the message");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user