added return to get_prompt_from_ctx
This commit is contained in:
parent
d6f1333378
commit
37c77680b4
1 changed files with 1 additions and 0 deletions
|
|
@ -83,6 +83,7 @@ class StableDiffusion(commands.Cog):
|
||||||
def get_prompt_from_ctx(self, ctx):
|
def get_prompt_from_ctx(self, ctx):
|
||||||
prompt = ctx.message.content.split(" ", maxsplit=1)[1]
|
prompt = ctx.message.content.split(" ", maxsplit=1)[1]
|
||||||
prompt = ' '.join(list(filter(lambda x: '=' not in x,prompt.split(' '))))
|
prompt = ' '.join(list(filter(lambda x: '=' not in x,prompt.split(' '))))
|
||||||
|
return prompt
|
||||||
|
|
||||||
async def my_open_img_file(self, path):
|
async def my_open_img_file(self, path):
|
||||||
img = Image.open(path)
|
img = Image.open(path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue