Added perms command; not setup yet, pretty much just a 'pass' at the moment
This commit is contained in:
parent
1101d287ad
commit
3ebec94c62
|
@ -60,6 +60,14 @@ class Mod:
|
||||||
msg = ' '.join(msg)
|
msg = ' '.join(msg)
|
||||||
await self.bot.say(msg)
|
await self.bot.say(msg)
|
||||||
await self.bot.delete_message(ctx.message)
|
await self.bot.delete_message(ctx.message)
|
||||||
|
|
||||||
|
@commands.group(pass_context=True, invoke_without_command=True)
|
||||||
|
@commands.has_permissions(manage_server=True)
|
||||||
|
async def perms(self, ctx, command: str)
|
||||||
|
if command not in self.bot.commands:
|
||||||
|
await bot.say("{} does not appear to be a valid command, I can't set permissions for a command that doesn't exist!")
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def setup(bot):
|
def setup(bot):
|
||||||
|
|
Loading…
Reference in a new issue