mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-04 02:26:11 +08:00
fix add sub bug
This commit is contained in:
parent
9074336843
commit
36632439ac
@ -53,7 +53,7 @@ def do_add_sub(add_sub: Type[Matcher]):
|
||||
state['_prompt'] = '请输入订阅用户的id,详情查阅https://nonebot-hk-reporter.vercel.app/usage/#%E6%89%80%E6%94%AF%E6%8C%81%E5%B9%B3%E5%8F%B0%E7%9A%84uid'
|
||||
else:
|
||||
state['id'] = 'default'
|
||||
state['name'] = await platform_manager[state['platform']].get_account_name(Target(''))
|
||||
state['name'] = await platform_manager[state['platform']].get_target_name(Target(''))
|
||||
|
||||
async def parse_id(bot: Bot, event: Event, state: T_State):
|
||||
target = str(event.get_message()).strip()
|
||||
|
@ -221,7 +221,7 @@ class UserCustomFilterMixin(CategoryMixin, ParsePostMixin, abstract=True):
|
||||
res.append((user, user_post))
|
||||
return res
|
||||
|
||||
class Platform(PlatformNameMixin, base=True):
|
||||
class Platform(PlatformNameMixin, UserCustomFilterMixin, base=True):
|
||||
|
||||
# schedule_interval: int
|
||||
schedule_type: Literal['date', 'interval', 'cron']
|
||||
|
Loading…
x
Reference in New Issue
Block a user