fix error

This commit is contained in:
un1xx committed 2025-04-21 22:07:30 +05:30
1 parent 9be5b54148
commit 9176b864f4
1 file changed
+2 -2
+2 -2
View File
@@ -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))