dont look at bot images now

This commit is contained in:
phixxy 2024-03-30 20:04:17 -07:00
parent 0b358ac0b9
commit 37677acd08

View file

@ -646,7 +646,7 @@ class ChatGPT(commands.Cog):
async def log_chat_and_get_history(self, message, logfile, channel_vars): async def log_chat_and_get_history(self, message, logfile, channel_vars):
log_line = '' 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 #log_image MUST BE ADDED TO THE JSON FILES
for attachment in message.attachments: for attachment in message.attachments:
image_description = await self.view_image(attachment.url) image_description = await self.view_image(attachment.url)