Skip to content

Commit

Permalink
add rinse command
Browse files Browse the repository at this point in the history
thanks dad for helping with it
  • Loading branch information
eip618 committed Jun 22, 2024
1 parent 81e761d commit c367edd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions cogs/assistance.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,21 @@ async def createsoap(self, ctx: GuildContext, helpee: discord.Member):
await self.bot.channels['mod-logs'].send(msg)
await ctx.send(f"Created 🧼 {channel.mention}.")

@is_staff('Helper')
@commands.guild_only()
@commands.command(aliases=["rinse"])
async def deletesoap(self, ctx: GuildContext, channels: commands.Greedy[discord.TextChannel):
"""Deletes a :soap: help channel. helper+ only."""
if not self.soaps_category:
return await ctx.send("The soaps category is not set.")
for channel in channels:
if channel not in self.soaps_category.channels:
continue
await channel.delete()
msg = f":x: **:soap: channel deleted**: {ctx.author.mention} deleted :soap: channel {channel.mention} | {channel.name} ({channel.id})"
await self.bot.channels['mod-logs'].send(msg)
await ctx.send(f"Deleted :soap: {channel.mention}.")

@is_staff('OP')
@commands.guild_only()
@commands.command()
Expand Down

0 comments on commit c367edd

Please sign in to comment.