mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 20:42:04 -04:00
18 lines
591 B
C#
18 lines
591 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; }
|
|
|
|
Task RunCommand(ChatBot botInstance, MessageModel message, UserDbModel user, GroupCollection arguments, CancellationToken ctx);
|
|
} |