1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

Added a purge command

This commit is contained in:
Phxntxm 2016-08-07 14:26:44 -05:00
parent 1002dcc9a8
commit 9d116f7890

View file

@ -155,6 +155,12 @@ class Mod:
del custom_perms[ctx.message.server.id][cmd]
config.saveContent('custom_permissions', custom_perms)
await self.bot.say("I have just removed the custom permissions for {}!".format(cmd))
@commands.command(pass_context=True, no_pm=True)
@checks.customPermsOrRole(manage_messages=True)
async def purge(self, ctx, limit: int=100):
"""This command is used to a purge a number of messages from the channel"""
await self.bot.purge_from(ctx.message.channel,limit=limit)
@commands.group(aliases=['rule'], pass_context=True, no_pm=True, invoke_without_command=True)
@checks.customPermsOrRole(send_messages=True)