diff --git a/app/star_citizen.py b/app/star_citizen.py index ebe50e78..b28ad83e 100644 --- a/app/star_citizen.py +++ b/app/star_citizen.py @@ -116,9 +116,19 @@ async def get_ship(ship_name): ) except Exception: cargo_capacity = "N/A" - embed.add_field(name="**Cargo Capacity**", value=cargo_capacity, inline=True) + try: + top_speed = ( + soup.find("div", {"class": "infobox__label"}, string="Max speed") + .findNext("span", {"class": "smwtext"}) + .text + ) + except Exception: + top_speed = "N/A" + + embed.add_field(name="**Top Speed**", value=top_speed, inline=True) + try: crew_size = ( soup.find("div", {"class": "infobox__label"}, string="Crew")