From 62f339d431811c5908a7e5f2eaabd6d45ca1be84 Mon Sep 17 00:00:00 2001 From: Kyomotoi <0w0@imki.moe> Date: Thu, 13 Oct 2022 16:22:02 +0800 Subject: =?UTF-8?q?=F0=9F=8E=A8=E2=9A=A1=EF=B8=8F=20=E8=B7=9F=E8=BF=9B=20c?= =?UTF-8?q?onfig=20=E9=A1=B9=E7=9A=84=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/setu/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ATRI/plugins/setu/__init__.py') diff --git a/ATRI/plugins/setu/__init__.py b/ATRI/plugins/setu/__init__.py index 7962af8..1e8af97 100644 --- a/ATRI/plugins/setu/__init__.py +++ b/ATRI/plugins/setu/__init__.py @@ -8,7 +8,7 @@ from nonebot.params import CommandArg, ArgPlainText from nonebot.adapters.onebot.v11 import Bot, MessageEvent, Message, MessageSegment from nonebot.adapters.onebot.v11.helpers import extract_image_urls, Cooldown -from ATRI.config import BotSelfConfig +from ATRI import conf from .data_source import Setu @@ -122,7 +122,7 @@ async def _setu_catcher(bot: Bot, event: MessageEvent): s_repo = f"多张涩图来咧!\n{ss}\n最涩的达到:{'{:.2%}'.format(hso[0])}" await bot.send(event, u_repo) - for superuser in BotSelfConfig.superusers: + for superuser in conf.BotConfig.superusers: await bot.send_private_msg(user_id=superuser, message=s_repo) @@ -143,7 +143,7 @@ async def _deal_check(bot: Bot, event: MessageEvent): if hso >= 0.75: resu += "hso!不行我要发给别人看" repo = f"涩图来咧!\n{MessageSegment.image(args[0])}\n涩值:{'{:.2%}'.format(hso)}" - for superuser in BotSelfConfig.superusers: + for superuser in conf.BotConfig.superusers: await bot.send_private_msg(user_id=superuser, message=repo) elif 0.75 > hso >= 0.5: -- cgit v1.2.3