From 8f4a99b6a9f1bde58569a53a26717364fbde3a84 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Sun, 30 Apr 2023 08:37:17 -0700 Subject: [PATCH] Set teh embed image to be the picture of the ship from the wiki --- app/cogs/star_citizen.py | 2 +- app/star_citizen.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/cogs/star_citizen.py b/app/cogs/star_citizen.py index 9470af13..b5043cbb 100644 --- a/app/cogs/star_citizen.py +++ b/app/cogs/star_citizen.py @@ -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) diff --git a/app/star_citizen.py b/app/star_citizen.py index 7cc32d29..802049c9 100644 --- a/app/star_citizen.py +++ b/app/star_citizen.py @@ -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(