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]
|
||||
elif ctx.message.content.startswith("!reimagine "):
|
||||
file_url = ctx.message.content.split(" ", maxsplit=2)[1]
|
||||
try:
|
||||
prompt = ctx.message.content.split(" ", maxsplit=2)[2]
|
||||
except:
|
||||
prompt = ""
|
||||
else:
|
||||
print("No image linked or attached.")
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue