vanity commit
This commit is contained in:
@@ -21,7 +21,7 @@ class Admin(commands.Cog):
|
|||||||
@commands.is_owner()
|
@commands.is_owner()
|
||||||
async def clear(self, ctx, amount=1):
|
async def clear(self, ctx, amount=1):
|
||||||
await ctx.channel.purge(limit=amount)
|
await ctx.channel.purge(limit=amount)
|
||||||
log.warn(f'{ctx.message.author.name} cleared {amount} messages')
|
log.warn(f'{ctx.message.author} cleared {amount} messages')
|
||||||
|
|
||||||
|
|
||||||
@commands.Cog.listener()
|
@commands.Cog.listener()
|
||||||
|
|||||||
@@ -27,14 +27,14 @@ e = discord.Embed()
|
|||||||
@commands.has_permissions(administrator=True)
|
@commands.has_permissions(administrator=True)
|
||||||
async def load(ctx, extension):
|
async def load(ctx, extension):
|
||||||
bot.load_extension(f'cogs.{extension}')
|
bot.load_extension(f'cogs.{extension}')
|
||||||
log.info(f'{extension} module loaded')
|
log.info(f'{ctx.message.author} loaded the {extension} module')
|
||||||
|
|
||||||
|
|
||||||
@bot.command()
|
@bot.command()
|
||||||
@commands.has_permissions(administrator=True)
|
@commands.has_permissions(administrator=True)
|
||||||
async def unload(ctx, extension):
|
async def unload(ctx, extension):
|
||||||
bot.unload_extension(f'cogs.{extension}')
|
bot.unload_extension(f'cogs.{extension}')
|
||||||
log.info(f'{extension} module unloaded')
|
log.info(f'{ctx.message.author} unloaded the {extension} module')
|
||||||
|
|
||||||
|
|
||||||
@bot.command()
|
@bot.command()
|
||||||
@@ -42,7 +42,7 @@ async def unload(ctx, extension):
|
|||||||
async def reload(ctx, extension):
|
async def reload(ctx, extension):
|
||||||
bot.unload_extension(f'cogs.{extension}')
|
bot.unload_extension(f'cogs.{extension}')
|
||||||
bot.load_extension(f'cogs.{extension}')
|
bot.load_extension(f'cogs.{extension}')
|
||||||
log.info(f'{extension} module reloaded')
|
log.info(f'{ctx.message.author} reloaded the {extension} module')
|
||||||
|
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
|
|||||||
Reference in New Issue
Block a user