fix regex

This commit is contained in:
Nayan
2025-08-25 23:30:36 -04:00
parent 5b2b61329f
commit 727caef3dc

2
bot.py
View File

@@ -33,7 +33,7 @@ active_server_pipe_task = None # To hold the asyncio task that reads from the pi
# This pattern captures the timestamp, log level, player name, and the message itself. # This pattern captures the timestamp, log level, player name, and the message itself.
# Adjust if your server log format is different (e.g., if you use plugins that change output). # Adjust if your server log format is different (e.g., if you use plugins that change output).
MINECRAFT_CHAT_REGEX = re.compile( MINECRAFT_CHAT_REGEX = re.compile(
r"^\[(.*?)\].*INFO.*\]: <(.*)> (.*)$" r"\[(.*?)\].*INFO.*\]: <(.*)> (.*)"
) )
''' '''