Fix searching for partner skill
This commit is contained in:
parent
ff7e9b28c1
commit
012a74c0b6
@ -3,6 +3,7 @@ from discord.ext import commands, tasks
|
|||||||
import discord
|
import discord
|
||||||
import requests
|
import requests
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
|
import re
|
||||||
|
|
||||||
|
|
||||||
class PalWorld(commands.Cog):
|
class PalWorld(commands.Cog):
|
||||||
@ -133,7 +134,7 @@ class PalWorld(commands.Cog):
|
|||||||
# Partner Skill
|
# Partner Skill
|
||||||
embed.add_field(name="Partner Skill", value="-----", inline=False)
|
embed.add_field(name="Partner Skill", value="-----", inline=False)
|
||||||
skill_name = soup.find("h2", string="Partner Skill").find_next(
|
skill_name = soup.find("h2", string="Partner Skill").find_next(
|
||||||
"p", class_="text-xl"
|
"p", class_=re.compile(".*text-xl.*")
|
||||||
)
|
)
|
||||||
skill_description = skill_name.find_next("p", class_="text-lg mr-4").text
|
skill_description = skill_name.find_next("p", class_="text-lg mr-4").text
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user