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)