mirror of
https://github.com/Fluffy-Bean/Lynxie.git
synced 2025-05-14 08:02:17 +00:00
Merge pull request #3 from Fluffy-Bean/deepsource-transform-a3616f49
format code with black
This commit is contained in:
commit
d7953e9808
2 changed files with 16 additions and 8 deletions
|
@ -11,8 +11,8 @@ class E621(commands.Cog):
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def e621(self, ctx):
|
async def e621(self, ctx):
|
||||||
embed = discord.Embed(
|
embed = discord.Embed(
|
||||||
title='Search Results',
|
title="Search Results",
|
||||||
description='Here\'s a list of jobs I found on Indeed, just for you!',
|
description="Here's a list of jobs I found on Indeed, just for you!",
|
||||||
colour=discord.Colour.orange(),
|
colour=discord.Colour.orange(),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -22,13 +22,21 @@ class E621(commands.Cog):
|
||||||
browser.close()
|
browser.close()
|
||||||
|
|
||||||
for job in soup.find_all("div", {"class": "job_seen_beacon"}):
|
for job in soup.find_all("div", {"class": "job_seen_beacon"}):
|
||||||
job_title = job.find("h2", {"class": "jobTitle"}).find("span").text.strip() or "Job Title"
|
job_title = (
|
||||||
company_name = job.find("span", {"class": "companyName"}).text.strip() or "Company Name"
|
job.find("h2", {"class": "jobTitle"}).find("span").text.strip()
|
||||||
company_location = job.find("div", {"class": "companyLocation"}).text.strip() or "Location"
|
or "Job Title"
|
||||||
|
)
|
||||||
|
company_name = (
|
||||||
|
job.find("span", {"class": "companyName"}).text.strip()
|
||||||
|
or "Company Name"
|
||||||
|
)
|
||||||
|
company_location = (
|
||||||
|
job.find("div", {"class": "companyLocation"}).text.strip() or "Location"
|
||||||
|
)
|
||||||
|
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
name=job_title,
|
name=job_title,
|
||||||
value=f'{company_name} - {company_location}',
|
value=f"{company_name} - {company_location}",
|
||||||
inline=False,
|
inline=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,8 @@ class Help(commands.Cog):
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def help(self, ctx):
|
async def help(self, ctx):
|
||||||
embed = discord.Embed(
|
embed = discord.Embed(
|
||||||
title='Help',
|
title="Help",
|
||||||
description='Lynxie\'s prefix is `AAAA `',
|
description="Lynxie's prefix is `AAAA `",
|
||||||
colour=discord.Colour.orange(),
|
colour=discord.Colour.orange(),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue