mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 22:07:55 +00:00
feat: better error reporting settings
This commit is contained in:
parent
f9aba1f129
commit
4a739c2d61
2 changed files with 1 additions and 4 deletions
|
|
@ -53,9 +53,6 @@ public class MessageCreated: IEventHandler<MessageCreateEvent>
|
|||
// 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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue