From 32725eb5a0d3cfd36173e404bf02a9b1289baa3a Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Mon, 15 Apr 2024 19:51:39 +0100 Subject: [PATCH] Further logging --- src/cogs/quote_quota.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/cogs/quote_quota.py b/src/cogs/quote_quota.py index a33f8bf..580c377 100644 --- a/src/cogs/quote_quota.py +++ b/src/cogs/quote_quota.py @@ -231,10 +231,14 @@ class QuoteQuota(commands.Cog): if msg.author.id == 1101439218334576742: if msg.created_at.timestamp() <= 1713202855.80234: # Pre 6:30pm 15th April, embeds were not tagged for detection. - return any((_te.type == "rich" for _te in msg.embeds)) + truth = any((_te.type == "rich" for _te in msg.embeds)) + if truth: + self.log.info("Found untagged rich trump truth embed %r", msg) + return True for __t_e in msg.embeds: if __t_e.type == "rich" and __t_e.colour.value == 0x5448EE: + self.log.info("Found tagged rich trump truth embed %r", __t_e) return True return False @@ -252,6 +256,7 @@ class QuoteQuota(commands.Cog): # All the tate truths are already tagged. for __t_e in msg.embeds: if __t_e.type == "rich" and __t_e.colour.value == 0x5448EE: + self.log.info("Found tagged rich tate truth embed %r", __t_e) return True return False