From 2748a27f953d50c6a856fff636cf2b232068c1df Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Sat, 15 Apr 2023 01:09:57 +0200 Subject: [PATCH] fix --- matrix_pygmalion_bot/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix_pygmalion_bot/core.py b/matrix_pygmalion_bot/core.py index 9d7e78b..253154b 100644 --- a/matrix_pygmalion_bot/core.py +++ b/matrix_pygmalion_bot/core.py @@ -62,7 +62,7 @@ class Callbacks(object): chat_message = self.bot.chat_history.room(room.room_id).add(event.event_id, event.server_timestamp, room.user_name(event.sender), event.sender == self.client.user, is_command, relates_to, event.body, language, english_original_message) # parse keywords - if not event.body.startswith('!') and not event.body.startswith('') + if not event.body.startswith('!') and not event.body.startswith(''): self.bot.extra_info = {"persona": [], "scenario": [], "example_dialogue": []} for i, keyword in enumerate(self.bot.keywords): if re.search(keyword["regex"], event.body, flags=re.IGNORECASE):