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)
@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(