mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
merge
This commit is contained in:
commit
80fd9b7117
@ -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<action>(信息|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)
|
||||
|
Loading…
Reference in New Issue
Block a user