I'm officially dumb

This commit is contained in:
13xforever 2020-11-02 18:06:18 +05:00
parent 67b38248e0
commit d1c1cab906

View File

@ -71,7 +71,7 @@ namespace CompatBot.EventHandlers
&& !isSpamChannel)
{
var previousMessage = await args.Channel.GetMessagesBeforeCachedAsync(args.Message.Id).ConfigureAwait(false);
var threshold = DateTime.UtcNow.AddMinutes(10);
var threshold = DateTime.UtcNow.AddMinutes(-10);
if (!previousMessage.Any(m => m.Author == args.Message.Author
&& m.Timestamp.UtcDateTime > threshold
&& !string.IsNullOrEmpty(m.Content)))