saving stable diffusion log differently
This commit is contained in:
parent
b460bd4821
commit
c24838074f
1 changed files with 2 additions and 2 deletions
|
|
@ -296,8 +296,8 @@ async def imagine(ctx):
|
||||||
f = discord.File(fh, filename=my_filename)
|
f = discord.File(fh, filename=my_filename)
|
||||||
log_data = {'Author': ctx.author.name, 'Prompt': prompt, "Filename":my_filename}
|
log_data = {'Author': ctx.author.name, 'Prompt': prompt, "Filename":my_filename}
|
||||||
with open("databases/stable_diffusion.log", 'a') as log_file:
|
with open("databases/stable_diffusion.log", 'a') as log_file:
|
||||||
log_file.writelines(log_data)
|
log_file.writelines(list(log_data))
|
||||||
await ctx.send(f'Generated by {ctx.author.name}\n{prompt}', file=f)
|
await ctx.send(f'Generated by: {ctx.author.name}\nPrompt: {prompt}', file=f)
|
||||||
await http_session.close()
|
await http_session.close()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue