add role to embed for ships
This commit is contained in:
parent
740a0e2001
commit
dba3d31d5b
@ -45,6 +45,14 @@ async def get_ship(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:
|
||||
# ingame_price = (
|
||||
# soup.find("div", {"class": "data-buycost infobox-data infobox-col2"})
|
||||
|
Loading…
x
Reference in New Issue
Block a user