From 635948d697be08643e56e2c5f7e935fb83f0bb28 Mon Sep 17 00:00:00 2001 From: Sena <34237511+sena-nana@users.noreply.github.com> Date: Sun, 26 Mar 2023 22:16:33 +0800 Subject: [PATCH] fix pure --- nonebot_plugin_novelai/aidraw.py | 2 +- nonebot_plugin_novelai/config.py | 2 +- nonebot_plugin_novelai/version.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nonebot_plugin_novelai/aidraw.py b/nonebot_plugin_novelai/aidraw.py index 193df93..7a1fafc 100644 --- a/nonebot_plugin_novelai/aidraw.py +++ b/nonebot_plugin_novelai/aidraw.py @@ -177,7 +177,7 @@ async def generate(fifo: AIDRAW): ) else: logger.info(f"队列剩余{wait_len()}人 | 生成完毕:{fifo}") - if await config.get_value(fifo.group_id, "pure"): + if config.novelai_pure: message = MessageSegment.at(fifo.user_id) for i in im["image"]: message += i diff --git a/nonebot_plugin_novelai/config.py b/nonebot_plugin_novelai/config.py index 534ada6..7e410b3 100644 --- a/nonebot_plugin_novelai/config.py +++ b/nonebot_plugin_novelai/config.py @@ -16,7 +16,7 @@ class Config(BaseSettings): # 服务器设置 novelai_token: str = "" # 官网的token # novelai: dict = {"novelai":""}# 你的服务器地址(包含端口),不包含http头,例:127.0.0.1:6969 - novelai_mode: str = "novelai" + novelai_mode: str = "sd" novelai_site: str = "" # 后台设置 novelai_save: int = 1 # 是否保存图片至本地,0为不保存,1保存,2同时保存追踪信息 diff --git a/nonebot_plugin_novelai/version.py b/nonebot_plugin_novelai/version.py index 0647d36..8da83d4 100644 --- a/nonebot_plugin_novelai/version.py +++ b/nonebot_plugin_novelai/version.py @@ -17,7 +17,7 @@ def __init__(self): try: self.version = version(self.package) except: - self.version = "0.5.8" + self.version = "0.5.9" async def check_update(self): """检查更新,并推送"""