Set teh embed image to be the picture of the ship from the wiki
This commit is contained in:
parent
a5454162e1
commit
24d8d5fb80
@ -51,7 +51,7 @@ class StarCitizen(commands.Cog):
|
||||
)
|
||||
|
||||
embed.set_thumbnail(
|
||||
url="https://cdn.discordapp.com/attachments/1062905729532571719/1090721517790318612/Screenshot_20230329-222457__01__01.jpg"
|
||||
url="https://media.robertsspaceindustries.com/t0q21kbb3zrpt/source.png"
|
||||
)
|
||||
embed.set_author(name="OH NO THERE IS AN INCIDENT")
|
||||
embed.add_field(name="Details", value=details.text, inline=True)
|
||||
|
@ -25,7 +25,9 @@ async def get_ship(ship_name):
|
||||
|
||||
ship_image = (soup.find("a", {"class": "mw-file-description"})).img["src"]
|
||||
|
||||
embed.set_thumbnail(url=ship_image)
|
||||
embed.set_thumbnail(
|
||||
url="https://media.robertsspaceindustries.com/t0q21kbb3zrpt/source.png"
|
||||
)
|
||||
|
||||
embed.set_author(name="Info about the %s" % ship_name)
|
||||
try:
|
||||
@ -130,6 +132,8 @@ async def get_ship(ship_name):
|
||||
name="**Link**", value="%s%s" % (wiki_url, wiki_ship_name), inline=False
|
||||
)
|
||||
|
||||
embed.set_image(url=ship_image)
|
||||
|
||||
except Exception as e:
|
||||
embed = discord.Embed(description="❌", color=discord.Color.red(), type="rich")
|
||||
embed.add_field(
|
||||
|
Loading…
x
Reference in New Issue
Block a user