mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
修复top错误判断用户存在的bug
This commit is contained in:
@@ -75,7 +75,8 @@ async def getUserData(userName: str) -> tuple[bool, str]:
|
||||
|
||||
|
||||
async def checkUser(userData: str) -> bool:
|
||||
return True if userData.find('user not found!') else False
|
||||
'''如果用户存在返回True,如果用户不存在返回False'''
|
||||
return False if userData.find('user not found!') != -1 else True
|
||||
|
||||
|
||||
async def getUserName(userData: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user