Add the coom command back
All checks were successful
Build and push / changes (push) Successful in 2s
Build and push / Lint-Python (push) Successful in 1s
Build and push / Build-and-Push-Docker (push) Successful in 20s
Build and push / sync-argocd-app (push) Successful in 2s
Build and push / post-status-to-discord (push) Successful in 2s

This commit is contained in:
Luke Robles 2025-04-19 10:22:50 -07:00
parent 6161bcfd15
commit e58c04668f

View File

@ -62,16 +62,18 @@ class Cheeky(commands.Cog):
) )
await ctx.respond(embed=embed) await ctx.respond(embed=embed)
@commands.command(name="coom", pass_context=True) @commands.slash_command(
async def coom(self, ctx: discord.ApplicationContext, id=None): name="coom",
if ctx.message.author.id != core_utils.my_id: pass_context=True,
return description="Put a bunch of reactions on a message",
message = list(await ctx.message.channel.history(limit=2).flatten())[-1] )
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: await ctx.respond("ok", delete_after=0.1)
message = await ctx.channel.fetch_message(id) message = await ctx.channel.fetch_message(id)
await ctx.message.delete() for emoji in await ctx.guild.fetch_emojis():
for emoji in await ctx.message.guild.fetch_emojis():
await message.add_reaction(emoji) await message.add_reaction(emoji)
@commands.slash_command( @commands.slash_command(