From 66180b116724b315d18d3cc22b22384f1e56a2a3 Mon Sep 17 00:00:00 2001 From: AnInternetTroll Date: Sun, 31 May 2020 15:18:39 +0200 Subject: Replacing Dyno --- cogs/admin.py | 6 ++++++ 1 file changed, 6 insertions(+) mode change 100755 => 100644 cogs/admin.py (limited to 'cogs/admin.py') diff --git a/cogs/admin.py b/cogs/admin.py old mode 100755 new mode 100644 index 8f100c1..670ab34 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -97,5 +97,11 @@ class Admin(commands.Cog): await ctx.voice_client.disconnect() await ctx.send(f"Left channel {ctx.author.voice.channel.name}") + @commands.command() + @commands.check(is_mod) + async def clear(self, ctx, number): + await ctx.message.channel.purge(limit=int(number), check=None, before=None, after=None, around=None, oldest_first=False, bulk=True) + + def setup(bot): bot.add_cog(Admin(bot)) -- cgit v1.2.3