mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Forgot to include these files in the previous commit
This commit is contained in:
@@ -12,9 +12,9 @@ public class HowlggStatsCommand : ICommand
|
|||||||
public List<Regex> Patterns => [
|
public List<Regex> Patterns => [
|
||||||
new Regex(@"^howl stats (?<window>\d+)$")
|
new Regex(@"^howl stats (?<window>\d+)$")
|
||||||
];
|
];
|
||||||
public string HelpText => "Get betting statistics in the given window";
|
public string? HelpText => "Get betting statistics in the given window";
|
||||||
public bool HideFromHelp => false;
|
|
||||||
public UserRight RequiredRight => UserRight.Guest;
|
public UserRight RequiredRight => UserRight.Guest;
|
||||||
|
public TimeSpan Timeout => TimeSpan.FromSeconds(10);
|
||||||
public async Task RunCommand(ChatBot botInstance, MessageModel message, UserDbModel user, GroupCollection arguments, CancellationToken ctx)
|
public async Task RunCommand(ChatBot botInstance, MessageModel message, UserDbModel user, GroupCollection arguments, CancellationToken ctx)
|
||||||
{
|
{
|
||||||
var window = Convert.ToInt32(arguments["window"].Value);
|
var window = Convert.ToInt32(arguments["window"].Value);
|
||||||
@@ -39,9 +39,9 @@ public class HowlggRecentBetCommand : ICommand
|
|||||||
public List<Regex> Patterns => [
|
public List<Regex> Patterns => [
|
||||||
new Regex(@"^howl recent$")
|
new Regex(@"^howl recent$")
|
||||||
];
|
];
|
||||||
public string HelpText => "Get the most recent 3 bets";
|
public string? HelpText => "Get the most recent 3 bets";
|
||||||
public bool HideFromHelp => false;
|
|
||||||
public UserRight RequiredRight => UserRight.Guest;
|
public UserRight RequiredRight => UserRight.Guest;
|
||||||
|
public TimeSpan Timeout => TimeSpan.FromSeconds(10);
|
||||||
public async Task RunCommand(ChatBot botInstance, MessageModel message, UserDbModel user, GroupCollection arguments, CancellationToken ctx)
|
public async Task RunCommand(ChatBot botInstance, MessageModel message, UserDbModel user, GroupCollection arguments, CancellationToken ctx)
|
||||||
{
|
{
|
||||||
var settings = await Helpers.GetMultipleValues([
|
var settings = await Helpers.GetMultipleValues([
|
||||||
|
|||||||
Reference in New Issue
Block a user