From 70d7ef0161f0bace1e59f3f908932777a36925cc Mon Sep 17 00:00:00 2001 From: zay Date: Mon, 2 Oct 2023 21:35:38 +0100 Subject: [PATCH] fix(websocket.py): import regex --- src/websocket.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/websocket.py b/src/websocket.py index 932d8ea5..9385d526 100644 --- a/src/websocket.py +++ b/src/websocket.py @@ -1,3 +1,4 @@ +import re import websockets import websockets.client import ssl @@ -111,7 +112,8 @@ def handle(self, m, initial_game_state): "time": message["time"], "puuid": player, "self": message["puuid"] == self.Requests.puuid, - "group":re.sub("\[|\]","",self.colors.escape_ansi(chat_prefix)), + "group": re.sub("\[|\]","",self.colors.escape_ansi( + chat_prefix)), "player": name, "agent": self.colors.escape_ansi(agent), "text": message['body']