diff --git a/.idea/misc.xml b/.idea/misc.xml index 06cab05..2a01189 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,7 @@ + + \ No newline at end of file diff --git a/games/sanguosha.py b/games/sanguosha.py index 0dcd091..db40ad2 100644 --- a/games/sanguosha.py +++ b/games/sanguosha.py @@ -36,7 +36,7 @@ class SanguoshaGame(BaseGame): # 获取用户信息 user = self.db.get_or_create_user(user_id) - username = user.get('username', f'用户{user_id}') + username = user.get('username') or f'用户{user_id}' # 路由指令 if not args or args == 'help':