Skip to content

Commit

Permalink
Put config declaration before its usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Zalk0 committed Oct 4, 2023
1 parent 03fc2e0 commit dffe612
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand 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
Expand Down

0 comments on commit dffe612

Please sign in to comment.