添加狼人杀游戏系统:支持开房加入、身份分配私聊、技能使用和私聊功能

This commit is contained in:
2025-11-03 12:30:02 +08:00
parent 8487e6e931
commit bcf93e910a
5 changed files with 1045 additions and 0 deletions

View File

@@ -282,6 +282,12 @@ async def handle_command(game_type: str, command: str,
game = CasinoGame()
return await game.handle(command, chat_id, user_id)
# 狼人杀系统
if game_type == 'werewolf':
from games.werewolf import WerewolfGame
game = WerewolfGame()
return await game.handle(command, chat_id, user_id)
# 未知游戏类型
logger.warning(f"未知游戏类型: {game_type}")
return "❌ 未知的游戏类型"