fixed bug if no prompt is given in reimagine
This commit is contained in:
parent
149c7591de
commit
ef5b841b86
1 changed files with 4 additions and 1 deletions
|
|
@ -332,7 +332,10 @@ class StableDiffusion(commands.Cog):
|
||||||
prompt = ctx.message.content.split(" ", maxsplit=1)[1]
|
prompt = ctx.message.content.split(" ", maxsplit=1)[1]
|
||||||
elif ctx.message.content.startswith("!reimagine "):
|
elif ctx.message.content.startswith("!reimagine "):
|
||||||
file_url = ctx.message.content.split(" ", maxsplit=2)[1]
|
file_url = ctx.message.content.split(" ", maxsplit=2)[1]
|
||||||
prompt = ctx.message.content.split(" ", maxsplit=2)[2]
|
try:
|
||||||
|
prompt = ctx.message.content.split(" ", maxsplit=2)[2]
|
||||||
|
except:
|
||||||
|
prompt = ""
|
||||||
else:
|
else:
|
||||||
print("No image linked or attached.")
|
print("No image linked or attached.")
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue