diff options
author | AnInternetTroll <lucafulger@gmail.com> | 2020-05-31 13:18:39 +0000 |
---|---|---|
committer | AnInternetTroll <lucafulger@gmail.com> | 2020-05-31 13:18:39 +0000 |
commit | 66180b116724b315d18d3cc22b22384f1e56a2a3 (patch) | |
tree | 3e0825a3d4792ae2af3bc0436d2d90e0b0b1eb95 /cogs/admin.py | |
parent | c84ec494e2903182d8b6a6be135206b9260b9937 (diff) | |
download | steve-bot-66180b116724b315d18d3cc22b22384f1e56a2a3.tar steve-bot-66180b116724b315d18d3cc22b22384f1e56a2a3.tar.gz steve-bot-66180b116724b315d18d3cc22b22384f1e56a2a3.tar.bz2 steve-bot-66180b116724b315d18d3cc22b22384f1e56a2a3.tar.lz steve-bot-66180b116724b315d18d3cc22b22384f1e56a2a3.tar.xz steve-bot-66180b116724b315d18d3cc22b22384f1e56a2a3.tar.zst steve-bot-66180b116724b315d18d3cc22b22384f1e56a2a3.zip |
Replacing Dyno
Diffstat (limited to 'cogs/admin.py')
-rw-r--r--[-rwxr-xr-x] | cogs/admin.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cogs/admin.py b/cogs/admin.py index 8f100c1..670ab34 100755..100644 --- 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)) |