update
This commit is contained in:
1 parent
6e536a09ef
commit
d6759b3bf8
1 file changed
+5
-5
+5
-5
@@ -70,7 +70,7 @@ class WarMonitor(commands.Cog):
|
||||
return f"{num/1000:,.1f}"
|
||||
else:
|
||||
return num
|
||||
def build_embed(nation_id: int, color: discord.Color):
|
||||
async def build_embed(nation_id: int, color: discord.Color):
|
||||
nation = await self.kit.query(
|
||||
"nations",
|
||||
{"id": nation_id, "first": 1},
|
||||
@@ -98,8 +98,8 @@ class WarMonitor(commands.Cog):
|
||||
|
||||
if war.att_alliance_id: # in MONITORED_ALLIANCES:
|
||||
|
||||
embed1 = build_embed(war.att_id, discord.Color.green())
|
||||
embed2 = build_embed(war.def_id, discord.Color.green())
|
||||
embed1 = await build_embed(war.att_id, discord.Color.green())
|
||||
embed2 = await build_embed(war.def_id, discord.Color.green())
|
||||
embed2.timestamp = datetime.datetime.now()
|
||||
|
||||
view = url_button_view(war)
|
||||
@@ -108,8 +108,8 @@ class WarMonitor(commands.Cog):
|
||||
|
||||
if war.def_alliance_id: #in MONITORED_ALLIANCES:
|
||||
|
||||
embed1 = build_embed(war.att_id, discord.Color.green())
|
||||
embed2 = build_embed(war.def_id, discord.Color.green())
|
||||
embed1 = await build_embed(war.att_id, discord.Color.green())
|
||||
embed2 = await build_embed(war.def_id, discord.Color.green())
|
||||
embed2.timestamp = datetime.datetime.now()
|
||||
|
||||
view = url_button_view(war)
|
||||
|
||||
Reference in new issue
Block a user