新增成语接龙游戏

This commit is contained in:
2025-10-28 16:12:32 +08:00
parent ff3d9cc343
commit c761a12377
7 changed files with 871 additions and 1 deletions

View File

@@ -146,6 +146,12 @@ async def handle_command(game_type: str, command: str,
game = QuizGame()
return await game.handle(command, chat_id, user_id)
# 成语接龙
if game_type == 'idiom':
from games.idiom import IdiomGame
game = IdiomGame()
return await game.handle(command, chat_id, user_id)
# 未知游戏类型
logger.warning(f"未知游戏类型: {game_type}")
return "❌ 未知的游戏类型"