From e2ba597416d7a919f62561b3851162f7663f6b3d Mon Sep 17 00:00:00 2001 From: Nayan <33187059+GShadow5@users.noreply.github.com> Date: Mon, 25 Aug 2025 23:06:17 -0400 Subject: [PATCH] update regex for chat --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 046d0a7..4d2dbc3 100644 --- a/bot.py +++ b/bot.py @@ -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. # Adjust if your server log format is different (e.g., if you use plugins that change output). MINECRAFT_CHAT_REGEX = re.compile( - r"^\[(\d{2}:\d{2}:\d{2}) INFO\]: <([^>]+)> (.*)$" + r"^\[(.*?)\].*INFO.*\]: <(.*)> (.*)$" ) '''