新增AI会话系统

This commit is contained in:
2025-10-29 23:56:57 +08:00
parent a893e54166
commit b247c57bbe
7 changed files with 761 additions and 0 deletions

View File

@@ -187,6 +187,12 @@ async def handle_command(game_type: str, command: str,
game = GiftGame()
return await game.handle(command, chat_id, user_id)
# AI对话系统
if game_type == 'ai_chat':
from games.ai_chat import AIChatGame
game = AIChatGame()
return await game.handle(command, chat_id, user_id)
# 未知游戏类型
logger.warning(f"未知游戏类型: {game_type}")
return "❌ 未知的游戏类型"