mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 20:42:04 -04:00
Took off rate limiting for images. I'll add it back on when it's tested.
This commit is contained in:
@@ -138,12 +138,7 @@ public class GetRandomImage : ICommand
|
|||||||
public string? HelpText => "Get a random image";
|
public string? HelpText => "Get a random image";
|
||||||
public UserRight RequiredRight => UserRight.Loser;
|
public UserRight RequiredRight => UserRight.Loser;
|
||||||
public TimeSpan Timeout => TimeSpan.FromMinutes(10);
|
public TimeSpan Timeout => TimeSpan.FromMinutes(10);
|
||||||
public RateLimitOptionsModel? RateLimitOptions => new()
|
public RateLimitOptionsModel? RateLimitOptions => null;
|
||||||
{
|
|
||||||
Window = TimeSpan.FromSeconds(10),
|
|
||||||
MaxInvocations = 3,
|
|
||||||
Flags = RateLimitFlags.NoResponse | RateLimitFlags.UseEntireMessage
|
|
||||||
};
|
|
||||||
public async Task RunCommand(ChatBot botInstance, MessageModel message, UserDbModel user, GroupCollection arguments,
|
public async Task RunCommand(ChatBot botInstance, MessageModel message, UserDbModel user, GroupCollection arguments,
|
||||||
CancellationToken ctx)
|
CancellationToken ctx)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user