Adding a line to the /ship command to say if theres a weapon rack on the ship or not
This commit is contained in:
parent
36715eded5
commit
10a649bc46
@ -156,6 +156,12 @@ async def get_ship(ship_name):
|
||||
crew_size = "N/A"
|
||||
|
||||
embed.add_field(name="**Crew Size**", value=crew_size, inline=True)
|
||||
|
||||
embed.add_field(
|
||||
name="**Gun Racks**",
|
||||
value="Yes" if "gun rack" in response.lower() else "No",
|
||||
inline=True,
|
||||
)
|
||||
embed.add_field(name="-------", value="", inline=False)
|
||||
|
||||
try:
|
||||
|
@ -90,7 +90,6 @@ def get_stock(share_name, verbose=False):
|
||||
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36"
|
||||
}
|
||||
request_string = (
|
||||
# "https://query2.finance.yahoo.com/v11/finance/quoteSummary&symbols=%s?modules=price"
|
||||
"https://query2.finance.yahoo.com/v11/finance/quoteSummary/%s?modules=price"
|
||||
% share_name
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user