Edit the original message for /sd if the connection fails, this will reduce clutter in the channel

This commit is contained in:
Luke Robles 2023-09-15 09:43:49 -07:00
parent ae8b1299a6
commit 2fe7d2c7ca

View File

@ -79,7 +79,7 @@ class StableDiffusion(commands.Cog):
) )
os.remove(file_path) os.remove(file_path)
except Exception as e: except Exception as e:
await ctx.respond( await original_message.edit(
"Stable diffusion isnt running right now, sorry.\n%s" % e, "Stable diffusion isnt running right now, sorry.\n%s" % e,
) )
else: else: