Skip to content

Commit

Permalink
fix: Load environment variables properly
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixpereira committed Jul 10, 2024
1 parent 619b35c commit 76afbfe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
import pkgutil
from discord import Intents, app_commands, Object, Interaction, Embed, Message, Color
from discord.ext import commands
from dotenv import load_dotenv

# Load environment variables from .env file
load_dotenv()

# Retrieve guild ID and bot token from environment variables
GUILD_ID = int(os.environ["GUILD_ID"])
Expand Down

0 comments on commit 76afbfe

Please sign in to comment.