update
This commit is contained in:
1 parent
3874e6ef32
commit
8695d694ac
1 file changed
+2
-3
+2
-3
@@ -237,11 +237,9 @@ class WarMonitor(commands.Cog):
|
|||||||
else:
|
else:
|
||||||
await channel.send("> Allied Nations in range")
|
await channel.send("> Allied Nations in range")
|
||||||
for n in range(0, len(in_range), 10):
|
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}>)"
|
|
||||||
message = "\n".join(
|
message = "\n".join(
|
||||||
[
|
[
|
||||||
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)}"
|
f"> [{n.nation_name}](<https://politicsandwar.com/nation/id={n.id}>)\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)}"
|
||||||
for n in in_range[n : n + 10]
|
for n in in_range[n : n + 10]
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
@@ -276,5 +274,6 @@ class WarMonitor(commands.Cog):
|
|||||||
for war in wars:
|
for war in wars:
|
||||||
await self.defense_handler(war)
|
await self.defense_handler(war)
|
||||||
|
|
||||||
|
|
||||||
async def setup(bot: Brahmos):
|
async def setup(bot: Brahmos):
|
||||||
await bot.add_cog(WarMonitor(bot))
|
await bot.add_cog(WarMonitor(bot))
|
||||||
Reference in new issue
Block a user