mirror of
https://github.com/RPCS3/discord-bot.git
synced 2025-03-03 15:29:22 +00:00
I'm officially dumb
This commit is contained in:
parent
67b38248e0
commit
d1c1cab906
@ -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)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user