From c24838074f3e970f9e9165f9deb663ba450c427e Mon Sep 17 00:00:00 2001 From: phixxy Date: Wed, 17 Jan 2024 23:39:04 -0800 Subject: [PATCH] saving stable diffusion log differently --- plugins/stable_diffusion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/stable_diffusion.py b/plugins/stable_diffusion.py index 823ddf0..102af99 100644 --- a/plugins/stable_diffusion.py +++ b/plugins/stable_diffusion.py @@ -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()