Add the full org name to the rsifind embed
This commit is contained in:
parent
ff21f96352
commit
9bd40e87f6
@ -154,6 +154,9 @@ async def rsi_find(player):
|
|||||||
org_soup = BeautifulSoup(org_response, "html.parser")
|
org_soup = BeautifulSoup(org_response, "html.parser")
|
||||||
|
|
||||||
org_name = (
|
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
|
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="-------", value="", inline=False)
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
name="Org Name",
|
name="Org Name",
|
||||||
value="[%s](%s)" % (org_name, org_url),
|
value="[%s (%s)](%s)" % (org_name, org_abbreviation, org_url),
|
||||||
inline=True,
|
inline=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user