Skip to content

Commit

Permalink
显示更详细的用户信息
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Sep 13, 2023
1 parent 92c92db commit e5361a4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/plugins/user/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,17 @@

@user_cmd.handle()
async def _(session: UserSession):
await user_cmd.finish(f"用户名: {session.name}\n创建日期: {session.created_at}")
await user_cmd.finish(
"\n".join(
[
f"用户 ID:{session.uid}",
f"用户名:{session.name}",
f"用户创建日期:{session.created_at}",
f"用户所在平台 ID:{session.pid}",
f"用户所在平台:{session.platform}",
]
)
)


tokens = cast(
Expand Down

0 comments on commit e5361a4

Please sign in to comment.