Adding dividers + a link to teh wiki at the bottom of the embed for a ship
This commit is contained in:
parent
792ebd1fe3
commit
4c1989fc30
@ -50,7 +50,7 @@ async def get_ship(ship_name):
|
|||||||
real_money_price = list(filter(lambda x: ("$" in x.text), children))
|
real_money_price = list(filter(lambda x: ("$" in x.text), children))
|
||||||
|
|
||||||
embed = discord.Embed(
|
embed = discord.Embed(
|
||||||
description="-------", color=discord.Color.teal(), type="rich"
|
description="-------", color=discord.Color.blue(), type="rich"
|
||||||
)
|
)
|
||||||
embed.set_thumbnail(url=ship_picture)
|
embed.set_thumbnail(url=ship_picture)
|
||||||
embed.set_author(name="Star Citizen API Info about the %s" % ship["name"])
|
embed.set_author(name="Star Citizen API Info about the %s" % ship["name"])
|
||||||
@ -58,10 +58,15 @@ async def get_ship(ship_name):
|
|||||||
embed.add_field(
|
embed.add_field(
|
||||||
name="**Pledge Price**", value=real_money_price[0].text, inline=True
|
name="**Pledge Price**", value=real_money_price[0].text, inline=True
|
||||||
)
|
)
|
||||||
|
embed.add_field(name="-------", value="", inline=False)
|
||||||
embed.add_field(name="**Description**", value=ship["description"], inline=False)
|
embed.add_field(name="**Description**", value=ship["description"], inline=False)
|
||||||
|
embed.add_field(name="-------", value="", inline=False)
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
name="**Cargo Capacity**", value="%s SCU" % ship["cargocapacity"], inline=True
|
name="**Cargo Capacity**", value="%s SCU" % ship["cargocapacity"], inline=True
|
||||||
)
|
)
|
||||||
embed.add_field(name="**Crew Size**", value=ship["max_crew"], inline=True)
|
embed.add_field(name="**Crew Size**", value=ship["max_crew"], inline=True)
|
||||||
|
embed.add_field(name="-------", value="", inline=False)
|
||||||
|
embed.add_field(
|
||||||
|
name="**Link**", value="%s%s" % (wiki_url, wiki_ship_name), inline=False
|
||||||
|
)
|
||||||
return embed
|
return embed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user