mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Test multiple invocations
This commit is contained in:
@@ -137,7 +137,7 @@ public class RateLimitTestCommand : ICommand
|
|||||||
public TimeSpan Timeout => TimeSpan.FromSeconds(15);
|
public TimeSpan Timeout => TimeSpan.FromSeconds(15);
|
||||||
public RateLimitOptionsModel? RateLimitOptions => new RateLimitOptionsModel
|
public RateLimitOptionsModel? RateLimitOptions => new RateLimitOptionsModel
|
||||||
{
|
{
|
||||||
MaxInvocations = 1,
|
MaxInvocations = 3,
|
||||||
Window = TimeSpan.FromSeconds(60)
|
Window = TimeSpan.FromSeconds(60)
|
||||||
};
|
};
|
||||||
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user