From 39cb228827b0261f2d41c165c6ca67f748ab2874 Mon Sep 17 00:00:00 2001 From: phixxy Date: Sat, 27 Jan 2024 20:00:51 -0800 Subject: [PATCH] fixed log path for dalle2/3 --- extensions/chatgpt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/chatgpt.py b/extensions/chatgpt.py index 6466974..aa8d859 100644 --- a/extensions/chatgpt.py +++ b/extensions/chatgpt.py @@ -225,7 +225,7 @@ class ChatGPT(commands.Cog): with open(filepath, "rb") as fh: f = discord.File(fh, filename=filepath) log_data = f'Author: {ctx.author.name}, Prompt: {prompt}, Filename: {my_filename}\n' - with open(f"{self.data_dir}dalle2.log", 'a') as log_file: + with open(f"{self.data_dir}logs/dalle2.log", 'a') as log_file: log_file.writelines(log_data) await ctx.send(f'Generated by: {ctx.author.name}\nPrompt: {prompt}', file=f) else: @@ -246,7 +246,7 @@ class ChatGPT(commands.Cog): with open(filepath, "rb") as fh: f = discord.File(fh, filename=filepath) log_data = f'Author: {ctx.author.name}, Prompt: {prompt}, Filename: {my_filename}\n' - with open(f"{self.data_dir}dalle3.log", 'a') as log_file: + with open(f"{self.data_dir}logs/dalle3.log", 'a') as log_file: log_file.writelines(log_data) await ctx.send(f'Generated by: {ctx.author.name}\nPrompt: {prompt}', file=f) else: