Some updates to pal
All checks were successful
Build and push / changes (push) Successful in 4s
Build and push / Lint-Python (push) Successful in 3s
Build and push / Build-and-Push-Docker (push) Successful in 19s
Build and push / sync-argocd-app (push) Successful in 2s
Build and push / post-status-to-discord (push) Successful in 2s
All checks were successful
Build and push / changes (push) Successful in 4s
Build and push / Lint-Python (push) Successful in 3s
Build and push / Build-and-Push-Docker (push) Successful in 19s
Build and push / sync-argocd-app (push) Successful in 2s
Build and push / post-status-to-discord (push) Successful in 2s
This commit is contained in:
parent
58acedf31b
commit
61247965af
@ -142,7 +142,11 @@ class PalWorld(commands.Cog):
|
||||
embed.add_field(name="Partner Skill", value="-----", inline=False)
|
||||
skill = soup.find("div", class_="passive skills")
|
||||
skill_name = skill.find_next("div", class_="name").text
|
||||
skill_description = skill.find_next("p").text
|
||||
skill_description = (
|
||||
skill.find_next("p")
|
||||
.text.replace("COMMON_ELEMENT_NAME_", "")
|
||||
.replace("\n", " ")
|
||||
)
|
||||
|
||||
embed.add_field(
|
||||
name=skill_name,
|
||||
@ -152,12 +156,15 @@ class PalWorld(commands.Cog):
|
||||
|
||||
# Drops
|
||||
embed.add_field(name="Drops", value="-----", inline=False)
|
||||
drops = [
|
||||
x.text
|
||||
for x in soup.find("h2", string="Possible Drops")
|
||||
.find_next("table")
|
||||
.find_all("div", class_="name")
|
||||
]
|
||||
try:
|
||||
drops = [
|
||||
x.text
|
||||
for x in soup.find("h2", string="Possible Drops")
|
||||
.find_next("table")
|
||||
.find_all("div", class_="name")
|
||||
]
|
||||
except:
|
||||
drops = ["None"]
|
||||
|
||||
for item in drops:
|
||||
embed.add_field(
|
||||
@ -165,6 +172,11 @@ class PalWorld(commands.Cog):
|
||||
value="",
|
||||
inline=False,
|
||||
)
|
||||
embed.add_field(
|
||||
name="",
|
||||
value=f"https://palworld.gg/pal/{pal.lower().replace(' ', '-')}",
|
||||
inline=False,
|
||||
)
|
||||
|
||||
await ctx.defer()
|
||||
await ctx.send_followup(embed=embed)
|
||||
|
Loading…
x
Reference in New Issue
Block a user