mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-02 09:26:12 +08:00
fix bug
This commit is contained in:
parent
98b1b66b61
commit
b79caf0e76
@ -13,7 +13,7 @@ from .send import send_msgs
|
||||
|
||||
add_sub = on_command("添加订阅", rule=to_me(), permission=GROUP_ADMIN | GROUP_OWNER | SUPERUSER, priority=5)
|
||||
@add_sub.got('platform', '请输入想要订阅的平台,目前支持:{}'.format(', '.join(platform_manager.keys())))
|
||||
@add_sub.got('id', '请输入订阅用户的id,详情查阅https://github.com/felinae98/nonebot-hk-reporter')
|
||||
# @add_sub.got('id', '请输入订阅用户的id,详情查阅https://github.com/felinae98/nonebot-hk-reporter')
|
||||
@add_sub.handle()
|
||||
async def add_sub_handle_id(bot: Bot, event: Event, state: T_State):
|
||||
if 'id' in state:
|
||||
|
@ -11,7 +11,7 @@ from ..post import Post
|
||||
from ..send import send_msgs
|
||||
|
||||
async def check_sub_target(target_type, target):
|
||||
return platform_manager[target_type].get_account_name(target)
|
||||
return await platform_manager[target_type].get_account_name(target)
|
||||
|
||||
platform_manager: dict[str, PlatformProto] = {
|
||||
'bilibili': Bilibili(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user