Add the full org name to the rsifind embed
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Luke R 2024-03-18 12:02:47 -07:00
parent 9e966638a7
commit e6d62edb18

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,
)