From e58c04668f368b31f293607aa0a94fe1003abe23 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Sat, 19 Apr 2025 10:22:50 -0700 Subject: [PATCH] Add the coom command back --- app/cogs/cheeky_functions.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/app/cogs/cheeky_functions.py b/app/cogs/cheeky_functions.py index c76942c4..8601ab1b 100755 --- a/app/cogs/cheeky_functions.py +++ b/app/cogs/cheeky_functions.py @@ -62,16 +62,18 @@ class Cheeky(commands.Cog): ) await ctx.respond(embed=embed) - @commands.command(name="coom", pass_context=True) - async def coom(self, ctx: discord.ApplicationContext, id=None): - if ctx.message.author.id != core_utils.my_id: - return - message = list(await ctx.message.channel.history(limit=2).flatten())[-1] + @commands.slash_command( + name="coom", + pass_context=True, + description="Put a bunch of reactions on a message", + ) + async def coom(self, ctx: discord.ApplicationContext, id): + if ctx.author.id != core_utils.my_id: + await ctx.respond("ok", delete_after=0.1) - if id: - message = await ctx.channel.fetch_message(id) - await ctx.message.delete() - for emoji in await ctx.message.guild.fetch_emojis(): + await ctx.respond("ok", delete_after=0.1) + message = await ctx.channel.fetch_message(id) + for emoji in await ctx.guild.fetch_emojis(): await message.add_reaction(emoji) @commands.slash_command(