From 7744e77e837dee57ca47c188007d2986f48e2e87 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Fri, 12 Dec 2025 18:46:16 -0600 Subject: [PATCH] Fix missing guild variable in draft monitor on-clock announcement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: The _post_on_clock_announcement method referenced 'guild' without defining it, causing the role ping to silently fail when posting on-clock announcements after auto-draft picks. Fix: Added guild lookup from bot.get_guild(config.guild_id) at the start of the method. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- VERSION | 2 +- tasks/draft_monitor.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 0f5dfbe..5827d9b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.24.1 +2.24.2 diff --git a/tasks/draft_monitor.py b/tasks/draft_monitor.py index 3473734..02a445f 100644 --- a/tasks/draft_monitor.py +++ b/tasks/draft_monitor.py @@ -389,6 +389,11 @@ class DraftMonitorTask: """ try: config = get_config() + guild = self.bot.get_guild(config.guild_id) + + if not guild: + self.logger.error("Could not find guild for on-clock announcement") + return # Refresh draft data to get updated currentpick and deadline updated_draft_data = await draft_service.get_draft_data()