From d9fbfb16fcfe940840ce397c9260a233059ff202 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Mon, 15 Apr 2024 21:15:12 +0100 Subject: [PATCH] Don't count any untagged embeds --- src/cogs/quote_quota.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/cogs/quote_quota.py b/src/cogs/quote_quota.py index 96cae52..0c3f465 100644 --- a/src/cogs/quote_quota.py +++ b/src/cogs/quote_quota.py @@ -229,13 +229,12 @@ class QuoteQuota(commands.Cog): """ def is_truth(msg: discord.Message) -> bool: if msg.author.id == 1101439218334576742: - if msg.created_at.timestamp() <= 1713202855.80234: - # Pre 6:30pm 15th April, embeds were not tagged for detection. - truth = any((_te.type == "rich" for _te in msg.embeds)) - if truth: - self.log.debug("Found untagged rich trump truth embed: %r", msg.id) - return True - + # if msg.created_at.timestamp() <= 1713202855.80234: + # # Pre 6:30pm 15th April, embeds were not tagged for detection. + # truth = any((_te.type == "rich" for _te in msg.embeds)) + # if truth: + # self.log.debug("Found untagged rich trump truth embed: %r", msg.id) + # return True for __t_e in msg.embeds: if __t_e.type == "rich" and __t_e.colour.value == 0x5448EE: self.log.debug("Found tagged rich trump truth embed: %r", msg.id)