Переглянути джерело

added help to the admin commands.

tags/v1.4.0
roxie 6 роки тому
джерело
коміт
a1c2b240c1
2 змінених файлів з 10 додано та 0 видалено
  1. +10
    -0
      cogs/admin.py
  2. +0
    -0
      config/__init__.py

+ 10
- 0
cogs/admin.py Переглянути файл

@@ -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 Переглянути файл


Завантаження…
Відмінити
Зберегти