🔧 修改错误实现

This commit is contained in:
Xtao_dada 2020-05-04 17:00:39 +08:00 committed by GitHub
parent 84ba5ac018
commit ada8cb1aaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,8 +195,8 @@ async def profile(context):
"喵喵喵 ~ 好像没有设置"
)
biography = target_user.about if target_user.about is not None else "没有公开的情报"
verified = target_user.user.verified.replace("False","").replace("True","")
restricted = target_user.user.restricted.replace("False","").replace("True","")
verified = "" if target_user.user.verified else ""
restricted = "" if target_user.user.restricted else ""
caption = f"**用户简介:** \n" \
f"道纹: {username_system} \n" \
f"ID: {target_user.user.id} \n" \