Set initial value to variable response

This commit is contained in:
Schimon Jehudah 2024-01-02 12:29:48 +00:00
parent 0eaeaaa757
commit 2026dc9a6a

View file

@ -137,6 +137,7 @@ async def message(self, message):
# await compose.message(self, jid, message) # await compose.message(self, jid, message)
response = "Empty message (action only)."
message_text = " ".join(message["body"].split()) message_text = " ".join(message["body"].split())
if message["type"] == "groupchat": if message["type"] == "groupchat":
message_text = message_text[1:] message_text = message_text[1:]