mirror of
https://github.com/opus-tango/minecraft-server-discord-bot.git
synced 2026-03-20 03:55:20 +00:00
fix regex
This commit is contained in:
2
bot.py
2
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.
|
# 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.*\]: <(.*)> (.*)"
|
||||||
)
|
)
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|||||||
Reference in New Issue
Block a user