Hendrik Langer 2 years ago
parent
commit
2748a27f95
  1. 2
      matrix_pygmalion_bot/core.py

2
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('<ERROR>')
if not event.body.startswith('!') and not event.body.startswith('<ERROR>'):
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):

Loading…
Cancel
Save