From dffe61208fae5f6690040f72939caa10aea2c092 Mon Sep 17 00:00:00 2001 From: Zalko <88582103+Zalk0@users.noreply.github.com> Date: Wed, 4 Oct 2023 12:24:01 +0200 Subject: [PATCH] Put config declaration before its usage --- bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 4cc9e85..0d4ac03 100644 --- a/bot.py +++ b/bot.py @@ -13,6 +13,9 @@ class ChouetteBot(discord.Client): # Initialization when class is called def __init__(self): + # Associate the config to the bot + self.config = dotenv_values() + # Set intents for the bot intents = discord.Intents.all() @@ -31,9 +34,6 @@ def __init__(self): # Used to check the first time the bot does the on_ready event self.first = True - # Associate the config to the bot - self.config = dotenv_values() - # Wait until bot is ready async def on_ready(self): # Waits until internal cache is ready