update
This commit is contained in:
1 parent
f13054e598
commit
3874e6ef32
1 file changed
+3
-6
+3
-6
@@ -238,13 +238,10 @@ class WarMonitor(commands.Cog):
|
||||
await channel.send("> Allied Nations in range")
|
||||
for n in range(0, len(in_range), 10):
|
||||
def name(nation) -> str:
|
||||
return f"[{nation.nation_name}](<https://politicsandwar.com/nation/id={nation.id}>)".ljust(25)
|
||||
return f"[{nation.nation_name}](<https://politicsandwar.com/nation/id={nation.id}>)"
|
||||
message = "\n".join(
|
||||
[
|
||||
f"> {name(n)} | \
|
||||
{Emojis.soldiers} {format_count(n.soldiers)} {Emojis.tanks} {format_count(n.tanks)} {Emojis.planes} \
|
||||
{format_count(n.aircraft)} {Emojis.ships} {format_count(n.ships)} {Emojis.missiles} {format_count(n.missiles)} \
|
||||
{Emojis.nukes} {format_count(n.nukes)}"
|
||||
f"> {name(n):<25} | {Emojis.soldiers} {format_count(n.soldiers)} {Emojis.tanks} {format_count(n.tanks)} {Emojis.planes} {format_count(n.aircraft)} {Emojis.ships} {format_count(n.ships)} {Emojis.missiles} {format_count(n.missiles)} {Emojis.nukes} {format_count(n.nukes)}"
|
||||
for n in in_range[n : n + 10]
|
||||
]
|
||||
)
|
||||
@@ -277,7 +274,7 @@ class WarMonitor(commands.Cog):
|
||||
wars = wars.wars
|
||||
wars = [war for war in wars if war.def_alliance_id in MONITORED_ALLIANCES]
|
||||
for war in wars:
|
||||
await self.war_logger(war)
|
||||
await self.defense_handler(war)
|
||||
|
||||
async def setup(bot: Brahmos):
|
||||
await bot.add_cog(WarMonitor(bot))
|
||||
Reference in new issue
Block a user