From dad3d57714a63ee3a09b21c8180d797441ac8211 Mon Sep 17 00:00:00 2001 From: Frederic Aust <frederic.aust@stud.hs-bochum.de> Date: Tue, 28 Nov 2023 17:41:04 +0100 Subject: [PATCH] Finally fixed the Enter! --- signalbot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/signalbot.py b/signalbot.py index aafd1d9..5c74e2c 100755 --- a/signalbot.py +++ b/signalbot.py @@ -108,6 +108,9 @@ def handle_action(timestamp, source, groupID, message, attachments): try: message = message[1:].strip() msg_splitted = message.split(" ") + if len(msg_splitted) == 1: + msg_splitted = message.replace("\n", " ", 1).split(" ") + msgDict["action"] = msg_splitted[0].lower() msgDict["content"] = " ".join(str(x) for x in msg_splitted[1:]).strip() if len(msgDict["action"]) == 0: -- GitLab