fixed bug if no prompt is given in reimagine

This commit is contained in:
phixxy 2024-01-21 13:49:28 -08:00
parent 149c7591de
commit ef5b841b86

View file

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