新增成语接龙游戏
This commit is contained in:
@@ -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 "❌ 未知的游戏类型"
|
||||
|
||||
Reference in New Issue
Block a user