Skip to content

Commit

Permalink
last minute img2img fix before presentation! YAY! Who doesnt love som…
Browse files Browse the repository at this point in the history
…e pressure?!
  • Loading branch information
peterwilli committed Sep 13, 2022
1 parent 8942372 commit 4047a59
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/kotlin/commands/img2img/Img2ImgCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ fun img2imgCommand(jda: JDA) {
50
}

event.deferReply().queue()

var batch = (0 until config.hostConstraints.totalImagesInMakeCommand).map {
val initialParams = optionsToStableDiffusionParams(event, it)
initialParams.copy(
Expand All @@ -53,7 +55,7 @@ fun img2imgCommand(jda: JDA) {
event.hook,
null
)
event.reply_(queueDispatcher.queue.addToQueue(entry)).queue()
event.hook.editOriginal(queueDispatcher.queue.addToQueue(entry)).queue()
} catch (e: Exception) {
e.printStackTrace()
event.reply_("Error! $e").setEphemeral(true).queue()
Expand Down

0 comments on commit 4047a59

Please sign in to comment.