Skip to content

Commit

Permalink
keyword tracking: Ignore Message Update events that do not update msg…
Browse files Browse the repository at this point in the history
… content
  • Loading branch information
FloatingMilkshake committed Jul 25, 2024
1 parent f35caa3 commit fbb3b0c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Helpers/KeywordTrackingHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ public static async Task KeywordCheck(DiscordMessage message, bool isEdit = fals
if (message.Channel.IsPrivate)
return;

if (isEdit && message.CreationTimestamp == message.EditedTimestamp)
return;

var fields = await Program.Db.HashGetAllAsync("keywords");

// Get message before current to check for assumed presence
Expand Down

0 comments on commit fbb3b0c

Please sign in to comment.