mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 12:32:03 -04:00
Completely untested and totally experimental rate limit feature
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
using System.Text.RegularExpressions;
|
||||
using KfChatDotNetBot.Models;
|
||||
using KfChatDotNetBot.Models.DbModels;
|
||||
using KfChatDotNetWsClient.Models.Events;
|
||||
|
||||
namespace KfChatDotNetBot.Commands;
|
||||
|
||||
internal interface ICommand
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user