add war monitor
This commit is contained in:
1 parent
e410da6470
commit
1035ad2d32
1 file changed
+3
-3
+3
-3
@@ -85,9 +85,9 @@ class WarMonitor(commands.Cog):
|
||||
wars = wars.wars
|
||||
war1 = wars[0]
|
||||
guild = await self.bot.fetch_guild(GUILD)
|
||||
category = discord.utils.get(guild.categories, id=CATEGORY)
|
||||
if war1.attacker.nation_name in [c.name for c in category.channels]:
|
||||
return
|
||||
# category = discord.utils.get(guild.categories, id=CATEGORY)
|
||||
# if war1.attacker.nation_name in [c.name for c in category.channels]:
|
||||
# return
|
||||
# ch = await guild.create_text_channel(name=war1.attacker.nation_name, category=category)
|
||||
ch = await guild.fetch_channel(1005142844475981834)
|
||||
await ch.send(f"War started between {war1.attacker.nation_name} and {war1.defender.nation_name} at {format_dt(war1.date, 'R')}")
|
||||
|
||||
Reference in new issue
Block a user