update readme

pull/4/head
SpenserCai 2023-08-27 15:20:05 +08:00
parent ce12a8c510
commit 3bca644767
2 changed files with 19 additions and 4 deletions

View File

@ -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.

View File

@ -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)