mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Increase timeout and add rate limiting
This commit is contained in:
@@ -22,9 +22,13 @@ public class PlinkoCommand : ICommand
|
||||
];
|
||||
public string? HelpText => "!plinko <bet amount> <optional number of balls 1 - 10, default 1 if nothing entered>";
|
||||
public UserRight RequiredRight => UserRight.Loser;
|
||||
public TimeSpan Timeout => TimeSpan.FromSeconds(10);
|
||||
public TimeSpan Timeout => TimeSpan.FromSeconds(30);
|
||||
|
||||
public RateLimitOptionsModel? RateLimitOptions => null;
|
||||
public RateLimitOptionsModel? RateLimitOptions => new RateLimitOptionsModel
|
||||
{
|
||||
MaxInvocations = 2,
|
||||
Window = TimeSpan.FromSeconds(10)
|
||||
};
|
||||
|
||||
private readonly string NULLSPACE = "⚫";
|
||||
private readonly string EMPTYSPACE = "⚪";
|
||||
|
||||
Reference in New Issue
Block a user