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 requests
|
||||
from bs4 import BeautifulSoup
|
||||
import re
|
||||
|
||||
|
||||
class PalWorld(commands.Cog):
|
||||
@ -133,7 +134,7 @@ class PalWorld(commands.Cog):
|
||||
# Partner Skill
|
||||
embed.add_field(name="Partner Skill", value="-----", inline=False)
|
||||
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
|
||||
embed.add_field(
|
||||
|
Loading…
x
Reference in New Issue
Block a user