feat: add CS Major autochess tournament
check / local-gate (push) Failing after 2m1s

This commit is contained in:
JWeBot Contributors
2026-10-15 15:17:32 +08:00
parent f07ae653c7
commit e713ff369a
26 changed files with 3901 additions and 20 deletions
@@ -14,6 +14,7 @@ from datetime import datetime, timezone
from typing import Any, Callable
from zoneinfo import ZoneInfo
from .cs_autochess import CsMajorAutochess
from .descriptors import LOCAL_COMMAND_ALIASES, render_feature_list
from .player_games import PlayerGames
@@ -107,6 +108,7 @@ class LocalCommandEngine:
self.profile_fact_is_safe = profile_fact_is_safe
self.profile_expiry = profile_expiry
self.players = PlayerGames(ledger, person_display_label)
self.autochess = CsMajorAutochess(ledger)
def handle(self, row: dict[str, Any], event: dict[str, Any]) -> str:
question = str(row["question"])
@@ -128,6 +130,8 @@ class LocalCommandEngine:
"game_rules",
}:
return self.reply_cleaner(self.players.handle(row, kind, arguments))
if kind == "cs_autochess":
return self.reply_cleaner(self.autochess.handle(row))
if kind == "dice":
return self.reply_cleaner(self.dice(row, arguments))
if kind == "dice_challenge":