From 37c77680b4b577454a14c87e466350f90a7934ee Mon Sep 17 00:00:00 2001 From: phixxy Date: Fri, 19 Jan 2024 20:53:04 -0800 Subject: [PATCH] added return to get_prompt_from_ctx --- plugins/stable_diffusion.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/stable_diffusion.py b/plugins/stable_diffusion.py index 37e8bad..652d732 100644 --- a/plugins/stable_diffusion.py +++ b/plugins/stable_diffusion.py @@ -83,6 +83,7 @@ class StableDiffusion(commands.Cog): def get_prompt_from_ctx(self, ctx): prompt = ctx.message.content.split(" ", maxsplit=1)[1] prompt = ' '.join(list(filter(lambda x: '=' not in x,prompt.split(' ')))) + return prompt async def my_open_img_file(self, path): img = Image.open(path)