From 37677acd088e97f22583e4307e771d5a6888d042 Mon Sep 17 00:00:00 2001 From: phixxy Date: Sat, 30 Mar 2024 20:04:17 -0700 Subject: [PATCH] dont look at bot images now --- cogs/chatgpt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/chatgpt.py b/cogs/chatgpt.py index f04f2e7..2f70a00 100644 --- a/cogs/chatgpt.py +++ b/cogs/chatgpt.py @@ -646,7 +646,7 @@ class ChatGPT(commands.Cog): async def log_chat_and_get_history(self, message, logfile, channel_vars): log_line = '' - if message.attachments and channel_vars.get("log_images", False): + if message.attachments and channel_vars.get("log_images", False) and not message.author.bot: #log_image MUST BE ADDED TO THE JSON FILES for attachment in message.attachments: image_description = await self.view_image(attachment.url)