Fix NameError

This commit is contained in:
Nexus 2024-04-15 18:39:29 +01:00
parent 5829faba46
commit b9eb78e71c
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -244,9 +244,7 @@ class QuoteQuota(commands.Cog):
await ctx.edit(embed=embed)
async for message in channel.history(limit=None, after=discord.Object(1228516325681532928)): # bot's first msg
if message.author.id == BOT_ID:
if not any([x.type == "rich" for x in message.embeds]):
continue
if is_truth(message):
count_all_time += 1
embed.add_field(name="All time", value=f"{count_all_time:,}", inline=False)