From 4a739c2d611247dc1d0f43dd4df098fc62710f1b Mon Sep 17 00:00:00 2001 From: spiral Date: Fri, 21 Jan 2022 00:10:51 -0500 Subject: [PATCH] feat: better error reporting settings --- PluralKit.Bot/Handlers/MessageCreated.cs | 3 --- PluralKit.Bot/Services/ErrorMessageService.cs | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/PluralKit.Bot/Handlers/MessageCreated.cs b/PluralKit.Bot/Handlers/MessageCreated.cs index 437ac37b..d97fbf05 100644 --- a/PluralKit.Bot/Handlers/MessageCreated.cs +++ b/PluralKit.Bot/Handlers/MessageCreated.cs @@ -53,9 +53,6 @@ public class MessageCreated: IEventHandler // for now, only return error messages for explicit commands public ulong? ErrorChannelFor(MessageCreateEvent evt, ulong userId) { - if (!HasCommandPrefix(evt.Content, userId, out var cmdStart) || cmdStart == evt.Content.Length) - return null; - return evt.ChannelId; } diff --git a/PluralKit.Bot/Services/ErrorMessageService.cs b/PluralKit.Bot/Services/ErrorMessageService.cs index 41ad263c..3c47cf3e 100644 --- a/PluralKit.Bot/Services/ErrorMessageService.cs +++ b/PluralKit.Bot/Services/ErrorMessageService.cs @@ -17,7 +17,7 @@ public class ErrorMessageService { // globally rate limit errors for now, don't want to spam users when something breaks private static readonly Duration MinErrorInterval = Duration.FromSeconds(10); - private static readonly Duration IntervalFromStartup = Duration.FromMinutes(5); + private static readonly Duration IntervalFromStartup = Duration.FromMinutes(2); private readonly ILogger _logger; private readonly BotConfig _botConfig;