From cb21202b83328f7565d7daa92b1b98fdd7c0438f Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Mon, 3 Jun 2024 00:49:07 +0100 Subject: [PATCH] Fix embed description check --- src/cogs/ollama.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cogs/ollama.py b/src/cogs/ollama.py index 1b6cfcf..b0947c5 100644 --- a/src/cogs/ollama.py +++ b/src/cogs/ollama.py @@ -1026,7 +1026,7 @@ class Ollama(commands.Cog): break if message.author.id == 1101439218334576742 and len(message.embeds): embed = message.embeds[0] - if embed.description.strip() == "NEW TRUTH": + if not embed.description or embed.description.strip() == "NEW TRUTH": continue if embed.type == "rich" and embed.colour and embed.colour.value == 0x5448EE: self.history.add_message(thread_id, "assistant", embed.description)