add role to embed for ships

This commit is contained in:
Luke Robles 2023-04-30 17:42:04 -07:00
parent 740a0e2001
commit dba3d31d5b

View File

@ -45,6 +45,14 @@ async def get_ship(ship_name):
url="%s%s" % (wiki_url, wiki_ship_name), url="%s%s" % (wiki_url, wiki_ship_name),
) )
ship_role = (
soup.find("tr", {"class": "data-role infobox-data infobox-col2"})
.findNext("td")
.text
)
embed.add_field(name="**Role**", value=ship_role)
try: try:
# ingame_price = ( # ingame_price = (
# soup.find("div", {"class": "data-buycost infobox-data infobox-col2"}) # soup.find("div", {"class": "data-buycost infobox-data infobox-col2"})