update
This commit is contained in:
1 parent
f5d90325ac
commit
94e273392c
1 file changed
+4
-4
+4
-4
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user