Further logging
This commit is contained in:
parent
52e25c5de1
commit
32725eb5a0
1 changed files with 6 additions and 1 deletions
|
@ -231,10 +231,14 @@ class QuoteQuota(commands.Cog):
|
||||||
if msg.author.id == 1101439218334576742:
|
if msg.author.id == 1101439218334576742:
|
||||||
if msg.created_at.timestamp() <= 1713202855.80234:
|
if msg.created_at.timestamp() <= 1713202855.80234:
|
||||||
# Pre 6:30pm 15th April, embeds were not tagged for detection.
|
# 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:
|
for __t_e in msg.embeds:
|
||||||
if __t_e.type == "rich" and __t_e.colour.value == 0x5448EE:
|
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 True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@ -252,6 +256,7 @@ class QuoteQuota(commands.Cog):
|
||||||
# All the tate truths are already tagged.
|
# All the tate truths are already tagged.
|
||||||
for __t_e in msg.embeds:
|
for __t_e in msg.embeds:
|
||||||
if __t_e.type == "rich" and __t_e.colour.value == 0x5448EE:
|
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 True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue