diff --git a/src/ollama_slixmpp_omemo_bot/ollama_bot.py b/src/ollama_slixmpp_omemo_bot/ollama_bot.py index faf810c..518b976 100644 --- a/src/ollama_slixmpp_omemo_bot/ollama_bot.py +++ b/src/ollama_slixmpp_omemo_bot/ollama_bot.py @@ -117,7 +117,7 @@ class OllamaBot(ClientXMPP): log = open("log.txt", "a", 1) if msg['body'] is not None: log.write(f"{mfrom}: {msg['body']}\n") - if self.is_command(decoded): + if self.is_command(msg['body']): await self.handle_command(mto, mtype, decoded) elif self.debug_level == LEVELS.DEBUG: ollama_server_response: Optional[str] = (