From 25eb1d2dbc5ee225ad96b4451b1d6e33786c1026 Mon Sep 17 00:00:00 2001 From: nalbam Date: Tue, 4 Jun 2024 13:31:17 +0000 Subject: [PATCH] fix message.replace --- handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler.py b/handler.py index dd65551..cfb95ac 100644 --- a/handler.py +++ b/handler.py @@ -132,7 +132,7 @@ def invoke_claude_3(messages): def reply_text(messages, channel, ts, user): message = invoke_claude_3(messages) - message = re.sub("**", "*", message) + message = message.replace("**", "*") chat_update(channel, ts, message)