added return to get_prompt_from_ctx

This commit is contained in:
phixxy 2024-01-19 20:53:04 -08:00
parent d6f1333378
commit 37c77680b4

View file

@ -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)