mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 12:32:03 -04:00
Another wait for message...
This commit is contained in:
@@ -205,7 +205,8 @@ public class MinesCommand : ICommand
|
|||||||
}
|
}
|
||||||
var msg = await botInstance.SendChatMessageAsync(
|
var msg = await botInstance.SendChatMessageAsync(
|
||||||
$"{KasinoMines.ActiveGames[gambler.Id].ToString()}", true);
|
$"{KasinoMines.ActiveGames[gambler.Id].ToString()}", true);
|
||||||
|
var msgSuccess = await botInstance.WaitForChatMessageAsync(msg, ct: ctx);
|
||||||
|
if (!msgSuccess) throw new InvalidOperationException("Timed out waiting for the message");
|
||||||
if (pick == 0) //if using coordinates
|
if (pick == 0) //if using coordinates
|
||||||
{
|
{
|
||||||
var game = KasinoMines.ActiveGames[gambler.Id];
|
var game = KasinoMines.ActiveGames[gambler.Id];
|
||||||
|
|||||||
Reference in New Issue
Block a user