diff --git a/README.md b/README.md index f7497de..97bf46a 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ * @Date: 2023-08-24 00:06:52 * @version: * @LastEditors: SpenserCai - * @LastEditTime: 2023-08-24 18:34:25 + * @LastEditTime: 2023-08-27 15:19:10 * @Description: file content --> # SD-WEBUI-DISCORD-EX @@ -51,6 +51,23 @@ You need to install the following extensions on the SD webui: } ``` +If you want set default value with sd-webui +```json +{ + "sd_webui":{ + "servers":[...], + "default_setting": { + "cfg_scale": 8, + "negative_prompt": "bad,text,watermask", + "height":1024, + "width":1024, + "steps":32 + } + } + ... +} +``` + 4. Restart the Stable Diffusion WebUI. 5. Find `Discord` tab and click `Start` button to start the Discord bot. diff --git a/scripts/ui_bot_mgr.py b/scripts/ui_bot_mgr.py index ccf65ad..2ee82bd 100644 --- a/scripts/ui_bot_mgr.py +++ b/scripts/ui_bot_mgr.py @@ -3,7 +3,7 @@ Author: SpenserCai Date: 2023-08-23 23:07:15 version: LastEditors: SpenserCai -LastEditTime: 2023-08-25 00:00:48 +LastEditTime: 2023-08-27 15:19:56 Description: file content ''' from modules import script_callbacks, paths_internal @@ -100,8 +100,6 @@ def discord_tab(): stop_button.click(inputs=[],outputs=[log],fn=stop_bot,_js=stop_jscode) - - return [(ui,"Discord","Discord")] script_callbacks.on_ui_tabs(discord_tab) \ No newline at end of file