update war logger

This commit is contained in:
un1xx committed 2025-05-12 21:19:48 +05:30
1 parent ae5cdd5bed
commit c82bb3bd3c
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -303,6 +303,8 @@ class WarMonitor(commands.Cog):
self.monitored_wars.append(war.id)
category = await self.bot.fetch_channel(CATEGORY)
attacker, defender = await get_nation(self.kit, [war.att_id, war.def_id])
if defender.alliance_position.name == "APPLICANT":
return
channel = await category.create_text_channel(
name=f"{attacker.nation_name.lower()}-{war.id}"
)