Remove logging redirection to file and update environment variable loading path

This commit is contained in:
Slipstream 2025-05-19 12:57:17 -06:00
parent e88dada1a9
commit 3d0e5bf6e5
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

5
bot.py
View File

@ -9,11 +9,6 @@ import functools
from discord import app_commands
import sys
# Redirect stdout and stderr to a log file
log_file_path = 'bot.log'
sys.stdout = open(log_file_path, 'a')
sys.stderr = open(log_file_path, 'a')
# Load environment variables
load_dotenv("/home/server/keys.env")
discord_token = os.getenv("DISCORD_TOKEN")