Add loaner to /ship command if it exists on the page
This commit is contained in:
parent
2c43ddebcb
commit
1c9086f88c
@ -151,6 +151,19 @@ async def get_ship(ship_name):
|
|||||||
value=pledge_price,
|
value=pledge_price,
|
||||||
inline=True,
|
inline=True,
|
||||||
)
|
)
|
||||||
|
try:
|
||||||
|
loaner = (
|
||||||
|
soup.find("div", {"class": "infobox__label"}, string="Loaner")
|
||||||
|
.findNext("div", {"class": "infobox__data"})
|
||||||
|
.text
|
||||||
|
)
|
||||||
|
embed.add_field(
|
||||||
|
name="**Loaner**",
|
||||||
|
value=loaner,
|
||||||
|
inline=True,
|
||||||
|
)
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
buy_location = (
|
buy_location = (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user