From 9176b864f40e536db43708b4eba2a8376e1abc17 Mon Sep 17 00:00:00 2001 From: un1xx Date: Mon, 21 Apr 2025 22:07:30 +0530 Subject: [PATCH] fix error --- exts/war_monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exts/war_monitor.py b/exts/war_monitor.py index cebb0dd..6673f96 100644 --- a/exts/war_monitor.py +++ b/exts/war_monitor.py @@ -499,10 +499,10 @@ class WarMonitor(commands.Cog): await ctx.send(f"this command only works inside {category.name}", delete_after=5) return id = int(ctx.channel.name.split("-")[-1]) + war = await get_war(self.kit, id) if not id: return await ctx.send("> can only use in tracked war channels with IDs in their name.") - await ctx.channel.send(id) - await self.calc_inrange(id, ctx.channel) + await self.calc_inrange(war.att_id, ctx.channel) async def setup(bot: Brahmos): await bot.add_cog(WarMonitor(bot))