From 7988eadc11c05a61c7f67ce78c2d9c61de617015 Mon Sep 17 00:00:00 2001 From: Bharadwaj Raju Date: Tue, 17 Dec 2024 15:29:46 +0530 Subject: [PATCH 1/2] &aoc join -> /aoc join in the error message The join command is actually a slash command, but the bot tells people to do `&aoc join`, and it ends up just not working. --- bot/exts/advent_of_code/_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/exts/advent_of_code/_helpers.py b/bot/exts/advent_of_code/_helpers.py index 3374225..e3a3b55 100644 --- a/bot/exts/advent_of_code/_helpers.py +++ b/bot/exts/advent_of_code/_helpers.py @@ -188,7 +188,7 @@ def _format_leaderboard(leaderboard: dict[str, dict], self_placement_name: str | raise commands.BadArgument( "Sorry, your profile does not exist in this leaderboard." "\n\n" - f"To join our leaderboard, run the command `{Bot.prefix}aoc join`." + f"To join our leaderboard, run the command `/aoc join`." " If you've joined recently, please wait up to 30 minutes for our leaderboard to refresh." ) return "\n".join(leaderboard_lines) From c6e4b8d32025e38cf382a4983e34122530fd4a85 Mon Sep 17 00:00:00 2001 From: Bharadwaj Raju Date: Tue, 17 Dec 2024 15:35:14 +0530 Subject: [PATCH 2/2] Fix ruff warnings (f-string without placeholders, unused Bot import) --- bot/exts/advent_of_code/_helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/exts/advent_of_code/_helpers.py b/bot/exts/advent_of_code/_helpers.py index e3a3b55..9d016ed 100644 --- a/bot/exts/advent_of_code/_helpers.py +++ b/bot/exts/advent_of_code/_helpers.py @@ -14,7 +14,7 @@ import bot from bot.bot import SirRobin -from bot.constants import AdventOfCode, Bot, Channels, Colours, Roles +from bot.constants import AdventOfCode, Channels, Colours, Roles from bot.exts.advent_of_code import _caches log = logging.get_logger(__name__) @@ -188,7 +188,7 @@ def _format_leaderboard(leaderboard: dict[str, dict], self_placement_name: str | raise commands.BadArgument( "Sorry, your profile does not exist in this leaderboard." "\n\n" - f"To join our leaderboard, run the command `/aoc join`." + "To join our leaderboard, run the command `/aoc join`." " If you've joined recently, please wait up to 30 minutes for our leaderboard to refresh." ) return "\n".join(leaderboard_lines)