mirror of
https://gitlab.com/pancakes1234/wdiscordbotserver.git
synced 2025-06-16 07:14:21 -06:00
Remove logging redirection to file and update environment variable loading path
This commit is contained in:
parent
e88dada1a9
commit
3d0e5bf6e5
5
bot.py
5
bot.py
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user