aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-05-04 16:15:57 -0400
committerGravatar ToxicKidz <[email protected]>2021-05-04 16:15:57 -0400
commitf7c9fecf5dbab7320ff91eecd322c5521034b628 (patch)
treedf85de4a0546da6c57efeb8eba21abda80196551
parentchore: Change back to the original string (diff)
chore: Replace the remaining double quotes with double quotes
-rw-r--r--bot/__init__.py2
-rw-r--r--bot/exts/evergreen/reddit.py2
-rw-r--r--bot/exts/halloween/halloweenify.py4
-rw-r--r--bot/exts/valentines/lovecalculator.py12
-rw-r--r--bot/utils/pagination.py2
5 files changed, 11 insertions, 11 deletions
diff --git a/bot/__init__.py b/bot/__init__.py
index 71b7c8a3..669f9f5d 100644
--- a/bot/__init__.py
+++ b/bot/__init__.py
@@ -64,7 +64,7 @@ logging.getLogger("matplotlib").setLevel(logging.ERROR)
# Setup new logging configuration
logging.basicConfig(
- format='%(asctime)s - %(name)s %(levelname)s: %(message)s',
+ format="%(asctime)s - %(name)s %(levelname)s: %(message)s",
datefmt="%D %H:%M:%S",
level=logging.TRACE if Client.debug else logging.DEBUG,
handlers=[console_handler, file_handler],
diff --git a/bot/exts/evergreen/reddit.py b/bot/exts/evergreen/reddit.py
index 82af6ce9..f2b95fe2 100644
--- a/bot/exts/evergreen/reddit.py
+++ b/bot/exts/evergreen/reddit.py
@@ -84,7 +84,7 @@ class Reddit(commands.Cog):
for i, post in enumerate(random_posts, start=1):
post_title = post["data"]["title"][0:50]
- post_url = post['data']['url']
+ post_url = post["data"]["url"]
if post_title == "":
post_title = "No Title."
elif post_title == post_url:
diff --git a/bot/exts/halloween/halloweenify.py b/bot/exts/halloween/halloweenify.py
index 47b20a2a..df55b55d 100644
--- a/bot/exts/halloween/halloweenify.py
+++ b/bot/exts/halloween/halloweenify.py
@@ -26,8 +26,8 @@ class Halloweenify(commands.Cog):
# Choose a random character from our list we loaded above and set apart the nickname and image url.
character = choice(data["characters"])
- nickname = ''.join([nickname for nickname in character])
- image = ''.join([character[nickname] for nickname in character])
+ nickname = "".join([nickname for nickname in character])
+ image = "".join([character[nickname] for nickname in character])
# Build up a Embed
embed = discord.Embed()
diff --git a/bot/exts/valentines/lovecalculator.py b/bot/exts/valentines/lovecalculator.py
index e55dc128..9096d994 100644
--- a/bot/exts/valentines/lovecalculator.py
+++ b/bot/exts/valentines/lovecalculator.py
@@ -23,7 +23,7 @@ with Path("bot/resources/valentines/love_matches.json").open(encoding="utf8") as
class LoveCalculator(Cog):
"""A cog for calculating the love between two people."""
- @commands.command(aliases=('love_calculator', 'love_calc'))
+ @commands.command(aliases=("love_calculator", "love_calc"))
@commands.cooldown(rate=1, per=5, type=commands.BucketType.user)
async def love(self, ctx: commands.Context, who: Union[Member, str], whom: Union[Member, str] = None) -> None:
"""
@@ -61,7 +61,7 @@ class LoveCalculator(Cog):
# Make sure user didn't provide something silly such as 10 spaces
if not (who and whom):
- raise BadArgument('Arguments be non-empty strings.')
+ raise BadArgument("Arguments be non-empty strings.")
# Hash inputs to guarantee consistent results (hashing algorithm choice arbitrary)
#
@@ -78,15 +78,15 @@ class LoveCalculator(Cog):
# We only need the dict, so we can ditch the first element
_, data = LOVE_DATA[index]
- status = random.choice(data['titles'])
+ status = random.choice(data["titles"])
embed = discord.Embed(
title=status,
- description=f'{who} \N{HEAVY BLACK HEART} {whom} scored {love_percent}%!\n\u200b',
+ description=f"{who} \N{HEAVY BLACK HEART} {whom} scored {love_percent}%!\n\u200b",
color=discord.Color.dark_magenta()
)
embed.add_field(
- name='A letter from Dr. Love:',
- value=data['text']
+ name="A letter from Dr. Love:",
+ value=data["text"]
)
await ctx.send(embed=embed)
diff --git a/bot/utils/pagination.py b/bot/utils/pagination.py
index a073a00b..e0dc25b4 100644
--- a/bot/utils/pagination.py
+++ b/bot/utils/pagination.py
@@ -283,7 +283,7 @@ class ImagePaginator(Paginator):
self.images = []
self._pages = []
- def add_line(self, line: str = '', *, empty: bool = False) -> None:
+ def add_line(self, line: str = "", *, empty: bool = False) -> None:
"""
Adds a line to each page, usually just 1 line in this context.