mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-04 02:26:11 +08:00
fix param name
This commit is contained in:
parent
3f5117d8a9
commit
3568bb292e
@ -126,7 +126,7 @@ if (STATIC_PATH / 'index.html').exists():
|
||||
|
||||
get_token = on_command('后台管理', rule=to_me(), priority=5)
|
||||
@get_token.handle()
|
||||
async def send_token(_: "Bot", event: PrivateMessageEvent, state: T_State):
|
||||
async def send_token(bot: "Bot", event: PrivateMessageEvent, state: T_State):
|
||||
token = tm.get_user_token((event.get_user_id(), event.sender.nickname))
|
||||
await get_token.finish(f'请访问: {plugin_config.bison_outer_url}auth/{token}')
|
||||
get_token.__help__name__ = '获取后台管理地址'
|
||||
|
Loading…
x
Reference in New Issue
Block a user