mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-04-30 03:22:04 -04:00
19 lines
636 B
C#
19 lines
636 B
C#
using System.Text.RegularExpressions;
|
|
using KfChatDotNetBot.Models;
|
|
using KfChatDotNetBot.Models.DbModels;
|
|
using KfChatDotNetWsClient.Models.Events;
|
|
|
|
namespace KfChatDotNetBot.Commands;
|
|
|
|
public interface ICommand
|
|
{
|
|
List<Regex> Patterns { get; }
|
|
// Set to null to disable help for a given command
|
|
string? HelpText { get; }
|
|
UserRight RequiredRight { get; }
|
|
TimeSpan Timeout { get; }
|
|
RateLimitOptionsModel? RateLimitOptions { get; }
|
|
bool WhisperCanInvoke { get; }
|
|
|
|
Task RunCommand(ChatBot botInstance, BotCommandMessageModel message, UserDbModel user, GroupCollection arguments, CancellationToken ctx);
|
|
} |