From 26b3cfbd834e8ef2a262b6cf3aead1807ba7be0f Mon Sep 17 00:00:00 2001 From: Adriene Hutchins Date: Mon, 2 Mar 2020 23:44:36 -0500 Subject: [PATCH] Changed Maintenance check --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 280107c..8b075ef 100644 --- a/main.py +++ b/main.py @@ -46,6 +46,7 @@ class Bot(commands.Bot): # Utils for ext in os.listdir('extensions/utils'): if ext.endswith('.py'): + print(ext) try: bot.load_extension(f'extensions.utils.{ext[:-3]}') self.extensions_list.append( @@ -131,6 +132,7 @@ class Bot(commands.Bot): msg += f"OWNER: {self.appinfo.owner}\n" msg += "-----------------------------\n" print(msg) + await self.logging.info(content=msg, name="On Ready") async def on_message(self, message): @@ -150,7 +152,7 @@ class Bot(commands.Bot): return # Maintenance mode - elif self.maintenance and not message.author.is_owner(): + elif self.maintenance and not message.author.id == bot.appinfo.owner.id: return # Empty ping for assistance