From 4441fa178c76c49c9325d08facc3ac09f9da932c Mon Sep 17 00:00:00 2001 From: alogindtractor <251821224+A-Log-In-D-Tractor@users.noreply.github.com> Date: Tue, 10 Feb 2026 20:03:01 -0800 Subject: [PATCH] Update MinesCommand.cs (#78) update refresh, update tool url --- KfChatDotNetBot/Commands/Kasino/MinesCommand.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/KfChatDotNetBot/Commands/Kasino/MinesCommand.cs b/KfChatDotNetBot/Commands/Kasino/MinesCommand.cs index 23c0fdd..f635e7a 100644 --- a/KfChatDotNetBot/Commands/Kasino/MinesCommand.cs +++ b/KfChatDotNetBot/Commands/Kasino/MinesCommand.cs @@ -5,6 +5,7 @@ using KfChatDotNetBot.Models.DbModels; using KfChatDotNetBot.Services; using KfChatDotNetBot.Settings; using KfChatDotNetWsClient.Models.Events; +using NLog.LayoutRenderers; namespace KfChatDotNetBot.Commands.Kasino; @@ -29,12 +30,12 @@ public class MinesCommand : ICommand //get info new Regex(@"^mines$", RegexOptions.IgnoreCase) ]; - public string? HelpText => "!mines to play simple mines. !mines for advanced mines. Tool: https://i.ddos.lgbt/raw/UJ9Dty.html"; + public string? HelpText => "!mines to play simple mines. !mines for advanced mines. Tool: https://i.ddos.lgbt/raw/baV63V.html"; public UserRight RequiredRight => UserRight.Loser; public TimeSpan Timeout => TimeSpan.FromSeconds(30); private const string BetPattern = @"(?\d+),(?\d+)"; - private const string ToolUrl = "https://i.ddos.lgbt/raw/Kasino%20Mines%20Interface.html"; + private const string ToolUrl = "https://i.ddos.lgbt/raw/baV63V.html"; public RateLimitOptionsModel? RateLimitOptions => new RateLimitOptionsModel { @@ -255,6 +256,11 @@ public class MinesCommand : ICommand await KasinoMines.Cashout(KasinoMines.ActiveGames[gambler.Id]); return; } + else if (message.Message.Contains("refresh")) + { + await KasinoMines.RefreshGameMessage(gambler.Id); + return; + } await botInstance.SendChatMessageAsync( $"{user.FormatUsername()}, you already have a game running. !mines to reveal more spaces, !mines cashout to cash out, !mines to place precise picks. Tool: {ToolUrl}", true, autoDeleteAfter: cleanupDelay);