aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/fun
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2023-11-13 14:43:34 +0000
committerGravatar GitHub <[email protected]>2023-11-13 14:43:34 +0000
commiteed1a172c9c5e2000d933da9200259b1b7e4be87 (patch)
treed30020e77e59a891cb36f6f2ce922eef16535c28 /bot/exts/fun
parentBump sentry-sdk from 1.34.0 to 1.35.0 (#1396) (diff)
parentLint repo with new ruff rules (diff)
Merge pull request #1395 from python-discord/dependabot/pip/ruff-0.1.5
Bump ruff from 0.1.4 to 0.1.5
Diffstat (limited to 'bot/exts/fun')
-rw-r--r--bot/exts/fun/snakes/_snakes_cog.py4
-rw-r--r--bot/exts/fun/tic_tac_toe.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/fun/snakes/_snakes_cog.py b/bot/exts/fun/snakes/_snakes_cog.py
index 6f359928..dfe2903a 100644
--- a/bot/exts/fun/snakes/_snakes_cog.py
+++ b/bot/exts/fun/snakes/_snakes_cog.py
@@ -375,7 +375,7 @@ class Snakes(Cog):
for image in snake_info["images"]:
# Images come in the format of `File:filename.extension`
- file, sep, filename = image["title"].partition(":")
+ _, _, filename = image["title"].partition(":")
filename = filename.replace(" ", "%20") # Wikipedia returns good data!
if not filename.startswith("Map"):
@@ -421,7 +421,7 @@ class Snakes(Cog):
# Validate the answer
try:
- reaction, user = await ctx.bot.wait_for("reaction_add", timeout=45.0, check=predicate)
+ reaction, _ = await ctx.bot.wait_for("reaction_add", timeout=45.0, check=predicate)
except TimeoutError:
await ctx.send(f"You took too long. The correct answer was **{options[answer]}**.")
await message.clear_reactions()
diff --git a/bot/exts/fun/tic_tac_toe.py b/bot/exts/fun/tic_tac_toe.py
index f6ee6293..f249c072 100644
--- a/bot/exts/fun/tic_tac_toe.py
+++ b/bot/exts/fun/tic_tac_toe.py
@@ -156,7 +156,7 @@ class Game:
)
try:
- reaction, user = await self.ctx.bot.wait_for(
+ reaction, _ = await self.ctx.bot.wait_for(
"reaction_add",
timeout=60.0,
check=confirm_check