From 9aaf8aa354fedf949f4295367887ad391259326b Mon Sep 17 00:00:00 2001 From: yair Date: Thu, 27 Apr 2023 13:57:48 +0300 Subject: [PATCH] fix negative prompt --- .gitignore | 2 +- main.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index e2be879..0da4f5f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ *.png .env -*.session \ No newline at end of file +.session \ No newline at end of file diff --git a/main.py b/main.py index 5d32a2c..dd6a607 100644 --- a/main.py +++ b/main.py @@ -28,7 +28,7 @@ app = Client("stable", api_id=API_ID, api_hash=API_HASH, bot_token=TOKEN) def slice_positive_negative(string): - delimiter = "ng" + delimiter = "ng:" if delimiter in string: index = string.index(delimiter) positive = string[:index].rstrip() @@ -43,7 +43,7 @@ def draw(client, message): msgs = message.text.split(" ", 1) if len(msgs) == 1: message.reply_text( - "Format :\n/draw < text to image >\nng < negative (optional) >" + "Format :\n/draw < text to image >\nng: < negative (optional) >" ) return