Update truth counter
All checks were successful
Build and Publish college-bot-v2 / build_and_publish (push) Successful in 13s

This commit is contained in:
Nexus 2024-06-05 03:13:09 +01:00
parent 03f222a1a3
commit 6fb9bb839b
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -326,16 +326,11 @@ class QuoteQuota(commands.Cog):
@commands.slash_command(name="truths") @commands.slash_command(name="truths")
async def truths_counter(self, ctx: discord.ApplicationContext): async def truths_counter(self, ctx: discord.ApplicationContext):
"""Counts the number of times the word 'truth' has been said in the quotes channel.""" """Counts the number of times the word 'truth' has been said in the quotes channel."""
channel = discord.utils.get(ctx.guild.text_channels, name="spam")
if not channel:
return await ctx.respond(":x: Cannot find spam channel.")
await ctx.defer() await ctx.defer()
now = discord.utils.utcnow().replace(minute=0, second=0, microsecond=0) now = discord.utils.utcnow().replace(minute=0, second=0, microsecond=0)
embed = discord.Embed( embed = discord.Embed(
title="Counting truths, please wait.", title="Counting truths, please wait.",
description="This may take a minute depending on how insane Trump and Tate are feeling.",
color=discord.Color.blurple(), color=discord.Color.blurple(),
timestamp=now, timestamp=now,
) )