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