Re-add owner check to load/unload/reload

This commit is contained in:
Dustin Pianalto 2019-12-14 01:44:47 -09:00
parent d4c13ba593
commit 4fe6f1af58

View File

@ -128,6 +128,7 @@ class Geeksbot(commands.Bot):
bot = Geeksbot(case_insensitive=True)
@is_me()
@bot.command(hidden=True)
async def load(ctx, mod=None):
"""Allows the owner to load extensions dynamically"""
@ -137,6 +138,7 @@ async def load(ctx, mod=None):
logger.info(f"{mod} loaded")
@is_me()
@bot.command(hidden=True)
async def reload(ctx, mod=None):
"""Allows the owner to reload extensions dynamically"""
@ -152,6 +154,7 @@ async def reload(ctx, mod=None):
await ctx.send(f'{mod} reloaded')
@is_me()
@bot.command(hidden=True)
async def unload(ctx, mod):
"""Allows the owner to unload extensions dynamically"""