fixed log path for dalle2/3
This commit is contained in:
parent
7cf3874261
commit
39cb228827
1 changed files with 2 additions and 2 deletions
|
|
@ -225,7 +225,7 @@ class ChatGPT(commands.Cog):
|
||||||
with open(filepath, "rb") as fh:
|
with open(filepath, "rb") as fh:
|
||||||
f = discord.File(fh, filename=filepath)
|
f = discord.File(fh, filename=filepath)
|
||||||
log_data = f'Author: {ctx.author.name}, Prompt: {prompt}, Filename: {my_filename}\n'
|
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)
|
log_file.writelines(log_data)
|
||||||
await ctx.send(f'Generated by: {ctx.author.name}\nPrompt: {prompt}', file=f)
|
await ctx.send(f'Generated by: {ctx.author.name}\nPrompt: {prompt}', file=f)
|
||||||
else:
|
else:
|
||||||
|
|
@ -246,7 +246,7 @@ class ChatGPT(commands.Cog):
|
||||||
with open(filepath, "rb") as fh:
|
with open(filepath, "rb") as fh:
|
||||||
f = discord.File(fh, filename=filepath)
|
f = discord.File(fh, filename=filepath)
|
||||||
log_data = f'Author: {ctx.author.name}, Prompt: {prompt}, Filename: {my_filename}\n'
|
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)
|
log_file.writelines(log_data)
|
||||||
await ctx.send(f'Generated by: {ctx.author.name}\nPrompt: {prompt}', file=f)
|
await ctx.send(f'Generated by: {ctx.author.name}\nPrompt: {prompt}', file=f)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue