From 94e273392cdf61ea7cf9879fcfcfb3bb999b1f20 Mon Sep 17 00:00:00 2001 From: un1xx Date: Wed, 16 Apr 2025 23:42:16 +0530 Subject: [PATCH] update --- exts/war_monitor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/exts/war_monitor.py b/exts/war_monitor.py index 5e55d4d..29a9ad3 100644 --- a/exts/war_monitor.py +++ b/exts/war_monitor.py @@ -96,7 +96,7 @@ class WarMonitor(commands.Cog): channel = await self.bot.fetch_channel(WAR_LOG_CHANNEL) - if war.att_alliance_id: # in MONITORED_ALLIANCES: + if war.att_alliance_id in MONITORED_ALLIANCES: embed1 = await build_embed(war.att_id, discord.Color.green()) embed2 = await build_embed(war.def_id, discord.Color.green()) @@ -106,10 +106,10 @@ class WarMonitor(commands.Cog): await channel.send(embeds=[embed1, embed2], view=view, content="> WAR (OFFENSIVE)") - if war.def_alliance_id: #in MONITORED_ALLIANCES: + if war.def_alliance_id in MONITORED_ALLIANCES: - embed1 = await build_embed(war.att_id, discord.Color.green()) - embed2 = await build_embed(war.def_id, discord.Color.green()) + embed1 = await build_embed(war.att_id, discord.Color.red()) + embed2 = await build_embed(war.def_id, discord.Color.red()) embed2.timestamp = datetime.datetime.now() view = url_button_view(war)