Update war_monitor.py

This commit is contained in:
un1xx authored and GitHub committed 2025-11-05 13:00:14 +05:30
1 parent d29a28dcc9
commit b5682d7070
1 file changed
+5 -5
+5 -5
View File
@@ -89,11 +89,11 @@ class WarMonitor(commands.Cog):
@commands.Cog.listener() @commands.Cog.listener()
async def on_ready(self): async def on_ready(self):
# categories = [await self.bot.fetch_channel(cat) for cat in CATEGORIES] categories = [await self.bot.fetch_channel(cat) for cat in CATEGORIES]
# channels = [ch for cat in categories for ch in cat.text_channels] channels = [ch for cat in categories for ch in cat.text_channels]
# war_ids = [ch.name.split("-")[-1] for ch in channels] war_ids = [ch.name.split("-")[-1] for ch in channels]
# war_ids = [int(x) for x in war_ids if x.isdigit()] war_ids = [int(x) for x in war_ids if x.isdigit()]
# self.monitored_wars.extend(war_ids) self.monitored_wars.extend(war_ids)
await self.set_allied_nations() await self.set_allied_nations()
self.war_check.start() self.war_check.start()
self.reload_subscriptions.start() self.reload_subscriptions.start()