diff options
author | 2020-03-20 05:18:44 +0000 | |
---|---|---|
committer | 2020-03-20 05:18:44 +0000 | |
commit | fcc2152e62bc67f41e4c8030bbd1d48dc875c471 (patch) | |
tree | ad09b31d45679fe2124f87ea97cc085ad2b9d81a | |
parent | Battleships - alter positioning of some comments (diff) |
Battleships - change hard-coded strings in subcommand
Co-Authored-By: Karlis S. <[email protected]>
-rw-r--r-- | bot/seasons/evergreen/battleship.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/seasons/evergreen/battleship.py b/bot/seasons/evergreen/battleship.py index d54c0000..9b8aaa48 100644 --- a/bot/seasons/evergreen/battleship.py +++ b/bot/seasons/evergreen/battleship.py @@ -433,8 +433,8 @@ class Battleship(commands.Cog): async def battleship_ships(self, ctx: commands.Context) -> None: """Lists the ships that are found on the battleship grid.""" embed = discord.Embed(colour=Colours.blue) - embed.add_field(name="Name", value="Carrier\nBattleship\nCruiser\nSubmarine\nDestroyer") - embed.add_field(name="Size", value="5\n4\n3\n3\n2") + embed.add_field(name="Name", value="\n".join(SHIPS)) + embed.add_field(name="Size", value="\n".join(str(size) for size in SHIPS.values())) await ctx.send(embed=embed) |