This commit is contained in:
un1xx committed 2025-04-21 22:04:43 +05:30
1 parent 73f97cfb20
commit e6c5285b86
2 files changed
+10 -1

No files matched your search

+3 -1
View File
@@ -496,9 +496,11 @@ class WarMonitor(commands.Cog):
async def inrange(self, ctx: CustomCtx):
category = await self.bot.fetch_channel(CATEGORY)
if ctx.channel not in category.text_channels:
await ctx.send(f"this command only works inside {category.name}")
await ctx.send(f"this command only works inside {category.name}", delete_after=5)
return
id = int(ctx.channel.name.split("-")[-1])
if not id:
return await ctx.send("> can only use in tracked war channels with IDs in their name.")
await self.calc_inrange(id, ctx.channel)
async def setup(bot: Brahmos):