Browse Source

added help to the admin commands.

tags/v1.4.0
roxie 6 years ago
parent
commit
a1c2b240c1
2 changed files with 10 additions and 0 deletions
  1. +10
    -0
      cogs/admin.py
  2. +0
    -0
      config/__init__.py

+ 10
- 0
cogs/admin.py View File

@@ -43,6 +43,11 @@ class Admin():
@bot_has_permissions(manage_messages=True)
@bot.command()
async def slowmode(self, ctx, time):
"""Puts the current channel in slowmode.
Usage:
;slowmode [time/"off"]
time = time of the cooldown between messages a user has.
off = turns off slowmode for this channel"""
if time == "off" and self.slow_mode: # Turn Slow Mode off
self.slow_mode = False
self.slow_mode_channels.pop(ctx.channel.id)
@@ -65,6 +70,11 @@ class Admin():
@checks.is_admin_or_mod()
@group()
async def warn(self, ctx):
"""Group of commands handling warnings
Options:
add
remove
list"""
if ctx.invoked_subcommand is None:
return await ctx.send('Missing Argument')


+ 0
- 0
config/__init__.py View File


Loading…
Cancel
Save