Change after timestamp

This commit is contained in:
Nexus 2024-04-15 21:16:42 +01:00
parent d9fbfb16fc
commit ffd0b403d1
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -236,7 +236,7 @@ class QuoteQuota(commands.Cog):
# self.log.debug("Found untagged rich trump truth embed: %r", msg.id) # self.log.debug("Found untagged rich trump truth embed: %r", msg.id)
# return True # 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 is not None and __t_e.colour.value == 0x5448EE:
self.log.debug("Found tagged rich trump truth embed: %r", msg.id) self.log.debug("Found tagged rich trump truth embed: %r", msg.id)
return True return True
return False return False
@ -275,7 +275,7 @@ class QuoteQuota(commands.Cog):
) )
messages: list[discord.Message] = await channel.history( messages: list[discord.Message] = await channel.history(
limit=None, limit=None,
after=discord.Object(1228516325681532928) after=discord.Object(1229487065117233203)
).flatten() ).flatten()
trump_stats = await self._process_trump_truths(messages) trump_stats = await self._process_trump_truths(messages)
tate_stats = await self._process_tate_truths(messages) tate_stats = await self._process_tate_truths(messages)