fix param name

This commit is contained in:
felinae98 2021-12-10 16:00:52 +08:00
parent 3f5117d8a9
commit 3568bb292e
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610

View File

@ -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__ = '获取后台管理地址'