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
d209fbb01d
commit
68fa959da0
@ -156,6 +156,12 @@ async def get_ship(ship_name):
|
|||||||
crew_size = "N/A"
|
crew_size = "N/A"
|
||||||
|
|
||||||
embed.add_field(name="**Crew Size**", value=crew_size, inline=True)
|
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)
|
embed.add_field(name="-------", value="", inline=False)
|
||||||
|
|
||||||
try:
|
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"
|
"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 = (
|
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"
|
"https://query2.finance.yahoo.com/v11/finance/quoteSummary/%s?modules=price"
|
||||||
% share_name
|
% share_name
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user