Further logging

This commit is contained in:
Nexus 2024-04-15 19:51:39 +01:00
parent 52e25c5de1
commit 32725eb5a0
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -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