Skip to content

Commit

Permalink
Merge pull request #3 from NelsonBN/added-logs
Browse files Browse the repository at this point in the history
Added logs
  • Loading branch information
NelsonBN authored Jun 10, 2024
2 parents e4f6a75 + 3669593 commit f4117e9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@
import discord
from discord.ext import commands

print('[BOT][STARTUP] Starting bot...')

load_dotenv() # Load .env file
DISCORD_API_TOKEN = os.environ.get('DISCORD_API_TOKEN')


if DISCORD_API_TOKEN is None or DISCORD_API_TOKEN == '':
print('[BOT][STARTUP] DISCORD_API_TOKEN is not set in .env file or environment variables. Exiting...')
exit(1)



intents = discord.Intents.default()
intents.message_content = True
intents.members = True
Expand Down

0 comments on commit f4117e9

Please sign in to comment.