From ffd0b403d15e42d928968b483b6c1bbc729cea57 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Mon, 15 Apr 2024 21:16:42 +0100 Subject: [PATCH] Change after timestamp --- src/cogs/quote_quota.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cogs/quote_quota.py b/src/cogs/quote_quota.py index 0c3f465..156a47b 100644 --- a/src/cogs/quote_quota.py +++ b/src/cogs/quote_quota.py @@ -236,7 +236,7 @@ class QuoteQuota(commands.Cog): # 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: + 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) return True return False @@ -275,7 +275,7 @@ class QuoteQuota(commands.Cog): ) messages: list[discord.Message] = await channel.history( limit=None, - after=discord.Object(1228516325681532928) + after=discord.Object(1229487065117233203) ).flatten() trump_stats = await self._process_trump_truths(messages) tate_stats = await self._process_tate_truths(messages)