This commit is contained in:
2026-07-07 23:24:12 +02:00
parent 4ff0427b64
commit 759c04a48f
2 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -20,7 +20,7 @@ from discord.ext import commands
from communication_subroutine import comm_subroutine
from constants import ENCODING, LOGFILE, TOKEN
logger = logging.getLogger("discord")
logger.setLevel(logging.INFO)
logger.setLevel(logging.DEBUG)
handler = handlers.RotatingFileHandler(
filename=LOGFILE,
encoding=ENCODING,
@@ -114,6 +114,7 @@ async def main() -> None:
shutdown_event = asyncio.Event()
comm_stop_event = threading.Event()
comm_task = asyncio.create_task(_run_comm_subroutine(comm_stop_event))
bot_task = asyncio.create_task(_run_bot(TOKEN, shutdown_event))