From 616da0d40160a25b3c1c22e241435b135c6d335e Mon Sep 17 00:00:00 2001 From: CMHopeSunshine <277073121@qq.com> Date: Sun, 12 Jun 2022 16:55:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=91=E5=8E=9F=E7=A5=9Efix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Paimon_CloudGenshin/__init__.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Paimon_CloudGenshin/__init__.py b/Paimon_CloudGenshin/__init__.py index 58033fa..1a87a0e 100644 --- a/Paimon_CloudGenshin/__init__.py +++ b/Paimon_CloudGenshin/__init__.py @@ -6,10 +6,8 @@ from nonebot import on_command, require, get_bot from nonebot.adapters.onebot.v11 import MessageEvent, Message, GroupMessageEvent from nonebot.params import CommandArg from .data_source import get_Info, get_Notification, check_token -from LittlePaimon.utils.decorator import exception_handler -from LittlePaimon.utils.file_handler import load_json, save_json -from LittlePaimon.utils.config import config -from LittlePaimon.utils.message_util import get_message_id +from utils.decorator import exception_handler +from utils.file_handler import load_json, save_json HELP_STR = ''' 云原神相关功能 @@ -56,10 +54,7 @@ async def _(event: Union[GroupMessageEvent, MessageEvent], msg: Message = Comman action = re.search(r'(?P(信息|info)|(绑定|bind))', param) if event.message_type == 'guild': - await cloud_ys.finish('该功能不支持群组或频道推送哦~', at_sender=True) - - if str(get_message_id(event)) not in config.paimon_cloudys_group: - await cloud_ys.finish(f'尚未在群 {str(get_message_id(event))} 开启本功能') + await cloud_ys.finish('该功能暂不支持频道推送哦~', at_sender=True) if not param: await cloud_ys.finish('请输入具体指令或参数!', at_sender=True)