From 4fe6f1af58def93b5feb791c790b4395842fccda Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Sat, 14 Dec 2019 01:44:47 -0900 Subject: [PATCH] Re-add owner check to load/unload/reload --- geeksbot/__main__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/geeksbot/__main__.py b/geeksbot/__main__.py index e78f50f..05e78af 100644 --- a/geeksbot/__main__.py +++ b/geeksbot/__main__.py @@ -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"""