diff --git a/lynxie/commands/e621.py b/lynxie/commands/e621.py index 3be171d..e9ed678 100644 --- a/lynxie/commands/e621.py +++ b/lynxie/commands/e621.py @@ -11,8 +11,8 @@ class E621(commands.Cog): @commands.command() async def e621(self, ctx): embed = discord.Embed( - title='Search Results', - description='Here\'s a list of jobs I found on Indeed, just for you!', + title="Search Results", + description="Here's a list of jobs I found on Indeed, just for you!", colour=discord.Colour.orange(), ) @@ -22,13 +22,21 @@ class E621(commands.Cog): browser.close() 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" - company_name = job.find("span", {"class": "companyName"}).text.strip() or "Company Name" - company_location = job.find("div", {"class": "companyLocation"}).text.strip() or "Location" + job_title = ( + job.find("h2", {"class": "jobTitle"}).find("span").text.strip() + 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( name=job_title, - value=f'{company_name} - {company_location}', + value=f"{company_name} - {company_location}", inline=False, ) diff --git a/lynxie/commands/help.py b/lynxie/commands/help.py index 15905c3..e008ea7 100644 --- a/lynxie/commands/help.py +++ b/lynxie/commands/help.py @@ -18,8 +18,8 @@ class Help(commands.Cog): @commands.command() async def help(self, ctx): embed = discord.Embed( - title='Help', - description='Lynxie\'s prefix is `AAAA `', + title="Help", + description="Lynxie's prefix is `AAAA `", colour=discord.Colour.orange(), )