fix error
This commit is contained in:
1 parent
9be5b54148
commit
9176b864f4
1 file changed
+2
-2
+2
-2
@@ -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))
|
||||
Reference in new issue
Block a user