From 23d8129b80d7fa502c3bfd0a5c8b4279ecd88a61 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Sat, 14 Feb 2026 08:52:15 -0600 Subject: [PATCH 1/3] Fix thaw report posting to use channel ID instead of nonexistent channel names The Saturday thaw report was silently failing because it searched for channels named 'bot-admin', 'admin', or 'bot-logs' which don't exist. Now uses a configurable channel ID (overridable via THAW_REPORT_CHANNEL_ID). Co-Authored-By: Claude Opus 4.6 --- config.py | 3 +++ tasks/transaction_freeze.py | 10 ++-------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/config.py b/config.py index 6cce743..98f439f 100644 --- a/config.py +++ b/config.py @@ -72,6 +72,9 @@ class BotConfig(BaseSettings): help_editor_role_name: str = "Help Editor" sba_players_role_name: str = "Season 13 Players" + # Channel IDs + thaw_report_channel_id: int = 1354134347598266430 + # Channel Names sba_network_news_channel: str = "sba-network-news" diff --git a/tasks/transaction_freeze.py b/tasks/transaction_freeze.py index 3d32fbf..fee9ecd 100644 --- a/tasks/transaction_freeze.py +++ b/tasks/transaction_freeze.py @@ -984,15 +984,9 @@ class TransactionFreezeTask: self.logger.warning("Could not find guild for thaw report") return - # Try to find admin channel (admin, bot-admin, or bot-logs) - admin_channel = None - for channel_name in ['bot-admin', 'admin', 'bot-logs']: - admin_channel = discord.utils.get(guild.text_channels, name=channel_name) - if admin_channel: - break - + admin_channel = self.bot.get_channel(config.thaw_report_channel_id) if not admin_channel: - self.logger.warning("Could not find admin channel for thaw report") + self.logger.warning("Could not find thaw report channel", channel_id=config.thaw_report_channel_id) return # Build the report content From bf2f3005c303d366dba41e570b37c9110056569d Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Sat, 14 Feb 2026 08:53:38 -0600 Subject: [PATCH 2/3] Bump version to 2.29.8, fix stale deploy script reference in CLAUDE.md Co-Authored-By: Claude Opus 4.6 --- CLAUDE.md | 4 ++-- VERSION | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 549c0f6..799c610 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -53,9 +53,9 @@ class MyCog(commands.Cog): ## Deployment -Builds and deploys are handled by Gitea Actions. Just create a PR to `main`: +Builds and deploys are handled by Gitea Actions. Create a PR to `main` using `tea`: ```bash -/home/cal/.claude/scripts/gitea-create-pr.sh cal/major-domo-bot main "title" "description" +tea pulls create --repo cal/major-domo-v2 --head --base main --title "title" --description "description" ``` Gitea validates the version, builds the Docker image, and deploys on merge. diff --git a/VERSION b/VERSION index 6bffa43..d36e604 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.29.7 +2.29.8 From 67de736581b50f826300f2fc37e2ba170f782826 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Sun, 15 Feb 2026 17:59:25 -0600 Subject: [PATCH 3/3] Add production environment details to CLAUDE.md Co-Authored-By: Claude Opus 4.6 --- CLAUDE.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 799c610..fb82916 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -53,6 +53,13 @@ class MyCog(commands.Cog): ## Deployment +### Production Environment +- **Host**: `ssh akamai` (Akamai cloud server) +- **Bot container**: `major-domo-discord-app-1` +- **Logs**: `ssh akamai "docker logs --since 1h major-domo-discord-app-1"` +- **Other services on same host**: `sba_db_api`, `sba_postgres`, `sba_redis`, `sba-website-sba-web-1`, `pd_api` + +### CI/CD Builds and deploys are handled by Gitea Actions. Create a PR to `main` using `tea`: ```bash tea pulls create --repo cal/major-domo-v2 --head --base main --title "title" --description "description"