Add the full org name to the rsifind embed

This commit is contained in:
Luke Robles 2024-03-18 12:02:47 -07:00
parent ff21f96352
commit 9bd40e87f6

View File

@ -154,6 +154,9 @@ async def rsi_find(player):
org_soup = BeautifulSoup(org_response, "html.parser")
org_name = (
org_soup.find("div", class_="inner").findNext("h1").text.split("/")[0]
)
org_abbreviation = (
org_soup.find("div", class_="inner").findNext("span", class_="symbol").text
)
@ -174,7 +177,7 @@ async def rsi_find(player):
embed.add_field(name="-------", value="", inline=False)
embed.add_field(
name="Org Name",
value="[%s](%s)" % (org_name, org_url),
value="[%s (%s)](%s)" % (org_name, org_abbreviation, org_url),
inline=True,
)