This commit is contained in:
hueso 2025-03-06 20:59:30 -03:00
parent ff696ef92a
commit 4a136da7f6

View File

@ -117,7 +117,7 @@ class OllamaBot(ClientXMPP):
log = open("log.txt", "a", 1) log = open("log.txt", "a", 1)
if msg['body'] is not None: if msg['body'] is not None:
log.write(f"{mfrom}: {msg['body']}\n") 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) await self.handle_command(mto, mtype, decoded)
elif self.debug_level == LEVELS.DEBUG: elif self.debug_level == LEVELS.DEBUG:
ollama_server_response: Optional[str] = ( ollama_server_response: Optional[str] = (