From b86986f03ecb09b9ba3bcf29294d9876309c9e70 Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Tue, 7 Apr 2026 21:10:00 -0500 Subject: [PATCH] Don't ignore edits if it's within 15 seconds of being sent --- KfChatDotNetBot/ChatBot.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/KfChatDotNetBot/ChatBot.cs b/KfChatDotNetBot/ChatBot.cs index 32e5681..d4817bc 100644 --- a/KfChatDotNetBot/ChatBot.cs +++ b/KfChatDotNetBot/ChatBot.cs @@ -440,7 +440,8 @@ public class ChatBot // Strip weird control characters and just allow basic punctuation + whitespace var kindaSanitized = new string(message.MessageRawHtmlDecoded .Where(c => c == ' ' || char.IsPunctuation(c) || char.IsLetter(c) || char.IsDigit(c)).ToArray()); - if (message.MessageEditDate == null && message.Author.Id != settings[BuiltIn.Keys.GambaSeshUserId].ToType() && + if ((message.MessageEditDate == null || message.MessageDate > DateTimeOffset.UtcNow.AddSeconds(-15)) + && message.Author.Id != settings[BuiltIn.Keys.GambaSeshUserId].ToType() && message.Author.Username != settings[BuiltIn.Keys.KiwiFarmsUsername].Value && settings[BuiltIn.Keys.BotRespondToDiscordImpersonation].ToBoolean() && (kindaSanitized.Contains("discord16.png") ||