新增五子棋游戏
This commit is contained in:
@@ -152,6 +152,12 @@ async def handle_command(game_type: str, command: str,
|
||||
game = IdiomGame()
|
||||
return await game.handle(command, chat_id, user_id)
|
||||
|
||||
# 五子棋
|
||||
if game_type == 'gomoku':
|
||||
from games.gomoku import GomokuGame
|
||||
game = GomokuGame()
|
||||
return await game.handle(command, chat_id, user_id)
|
||||
|
||||
# 未知游戏类型
|
||||
logger.warning(f"未知游戏类型: {game_type}")
|
||||
return "❌ 未知的游戏类型"
|
||||
|
||||
Reference in New Issue
Block a user