From b5682d7070306e44c78ef13ff1236dab27a279bf Mon Sep 17 00:00:00 2001 From: un1xx <31860157+un1xx@users.noreply.github.com> Date: Wed, 5 Nov 2025 13:00:14 +0530 Subject: [PATCH] Update war_monitor.py --- exts/war_monitor.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/exts/war_monitor.py b/exts/war_monitor.py index 244712e..9ad9b06 100644 --- a/exts/war_monitor.py +++ b/exts/war_monitor.py @@ -89,11 +89,11 @@ class WarMonitor(commands.Cog): @commands.Cog.listener() async def on_ready(self): - # categories = [await self.bot.fetch_channel(cat) for cat in CATEGORIES] - # channels = [ch for cat in categories for ch in cat.text_channels] - # war_ids = [ch.name.split("-")[-1] for ch in channels] - # war_ids = [int(x) for x in war_ids if x.isdigit()] - # self.monitored_wars.extend(war_ids) + categories = [await self.bot.fetch_channel(cat) for cat in CATEGORIES] + channels = [ch for cat in categories for ch in cat.text_channels] + war_ids = [ch.name.split("-")[-1] for ch in channels] + war_ids = [int(x) for x in war_ids if x.isdigit()] + self.monitored_wars.extend(war_ids) await self.set_allied_nations() self.war_check.start() self.reload_subscriptions.start()