mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
@@ -5,6 +5,7 @@ using KfChatDotNetBot.Models.DbModels;
|
|||||||
using KfChatDotNetBot.Services;
|
using KfChatDotNetBot.Services;
|
||||||
using KfChatDotNetBot.Settings;
|
using KfChatDotNetBot.Settings;
|
||||||
using KfChatDotNetWsClient.Models.Events;
|
using KfChatDotNetWsClient.Models.Events;
|
||||||
|
using NLog.LayoutRenderers;
|
||||||
|
|
||||||
namespace KfChatDotNetBot.Commands.Kasino;
|
namespace KfChatDotNetBot.Commands.Kasino;
|
||||||
|
|
||||||
@@ -29,12 +30,12 @@ public class MinesCommand : ICommand
|
|||||||
//get info
|
//get info
|
||||||
new Regex(@"^mines$", RegexOptions.IgnoreCase)
|
new Regex(@"^mines$", RegexOptions.IgnoreCase)
|
||||||
];
|
];
|
||||||
public string? HelpText => "!mines <bet> <board size> <number of mines> <picks> to play simple mines. !mines <bet> <board size> <number of mines> <betString> for advanced mines. Tool: https://i.ddos.lgbt/raw/UJ9Dty.html";
|
public string? HelpText => "!mines <bet> <board size> <number of mines> <picks> to play simple mines. !mines <bet> <board size> <number of mines> <betString> for advanced mines. Tool: https://i.ddos.lgbt/raw/baV63V.html";
|
||||||
public UserRight RequiredRight => UserRight.Loser;
|
public UserRight RequiredRight => UserRight.Loser;
|
||||||
public TimeSpan Timeout => TimeSpan.FromSeconds(30);
|
public TimeSpan Timeout => TimeSpan.FromSeconds(30);
|
||||||
|
|
||||||
private const string BetPattern = @"(?<row>\d+),(?<col>\d+)";
|
private const string BetPattern = @"(?<row>\d+),(?<col>\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
|
public RateLimitOptionsModel? RateLimitOptions => new RateLimitOptionsModel
|
||||||
{
|
{
|
||||||
@@ -255,6 +256,11 @@ public class MinesCommand : ICommand
|
|||||||
await KasinoMines.Cashout(KasinoMines.ActiveGames[gambler.Id]);
|
await KasinoMines.Cashout(KasinoMines.ActiveGames[gambler.Id]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
else if (message.Message.Contains("refresh"))
|
||||||
|
{
|
||||||
|
await KasinoMines.RefreshGameMessage(gambler.Id);
|
||||||
|
return;
|
||||||
|
}
|
||||||
await botInstance.SendChatMessageAsync(
|
await botInstance.SendChatMessageAsync(
|
||||||
$"{user.FormatUsername()}, you already have a game running. !mines <picks> to reveal more spaces, !mines cashout to cash out, !mines <bet string> to place precise picks. Tool: {ToolUrl}",
|
$"{user.FormatUsername()}, you already have a game running. !mines <picks> to reveal more spaces, !mines cashout to cash out, !mines <bet string> to place precise picks. Tool: {ToolUrl}",
|
||||||
true, autoDeleteAfter: cleanupDelay);
|
true, autoDeleteAfter: cleanupDelay);
|
||||||
|
|||||||
Reference in New Issue
Block a user