saving stable diffusion log differently

This commit is contained in:
phixxy 2024-01-17 23:39:04 -08:00
parent b460bd4821
commit c24838074f

View file

@ -296,8 +296,8 @@ async def imagine(ctx):
f = discord.File(fh, filename=my_filename)
log_data = {'Author': ctx.author.name, 'Prompt': prompt, "Filename":my_filename}
with open("databases/stable_diffusion.log", 'a') as log_file:
log_file.writelines(log_data)
await ctx.send(f'Generated by {ctx.author.name}\n{prompt}', file=f)
log_file.writelines(list(log_data))
await ctx.send(f'Generated by: {ctx.author.name}\nPrompt: {prompt}', file=f)
await http_session.close()