Decrease command cooldown to 10 seconds.

master
Icedream 2018-06-03 00:41:21 +02:00
parent 724139900e
commit 5a250b538c
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ func (m *AntiSpam) init() {
m.userTrackingMap = map[string][]time.Time{} m.userTrackingMap = map[string][]time.Time{}
m.commandTrackingMap = map[string][]time.Time{} m.commandTrackingMap = map[string][]time.Time{}
m.CommandCooldownDuration = 15 * time.Second m.CommandCooldownDuration = 10 * time.Second
m.CommandRateLimitCount = 2 m.CommandRateLimitCount = 2
m.CommandRateLimitDuration = 1 * time.Minute m.CommandRateLimitDuration = 1 * time.Minute