From b3b0fb4adfe2e733875ca236989379107524956c Mon Sep 17 00:00:00 2001 From: Luke Robles <98352913+lrobles-iterable@users.noreply.github.com> Date: Thu, 6 Oct 2022 08:07:17 -0700 Subject: [PATCH] fixing logic for prompts that dont have negatives --- app/cogs/actual_utils.py | 3 ++- test-dragon-bot.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/cogs/actual_utils.py b/app/cogs/actual_utils.py index 6d7c3b86..1aaaad33 100644 --- a/app/cogs/actual_utils.py +++ b/app/cogs/actual_utils.py @@ -74,6 +74,8 @@ class ActualUtils(commands.Cog): port = "7860" ip = "192.168.1.80" steps = 20 + negatives = "" + positives = prompt # Send my requests to my gaming computer with the 3080 (if its up) if ctx.message.author.id == 144986109804412928: @@ -90,7 +92,6 @@ class ActualUtils(commands.Cog): original_message = await ctx.reply( "Please be patient, I'm generating your image" ) - negatives = "" if ";" in prompt: positives = prompt.split(";")[0] negatives = prompt.split(";")[1] diff --git a/test-dragon-bot.sh b/test-dragon-bot.sh index bb2e719e..ac5eb985 100755 --- a/test-dragon-bot.sh +++ b/test-dragon-bot.sh @@ -1,4 +1,5 @@ printf "\n[-] Formatting code\n" +find . -name "*sync-conflict*" -delete ./format_code.sh printf "[+] Done\n"