From 64e1ac315daf4d17da02790859baebbbbb7bdfc4 Mon Sep 17 00:00:00 2001 From: shtlrs Date: Mon, 1 May 2023 14:20:31 +0100 Subject: update Client constants This also renames the Client class to Bot, to align better with Python. --- bot/exts/fun/fun.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bot/exts/fun/fun.py') diff --git a/bot/exts/fun/fun.py b/bot/exts/fun/fun.py index 16279dd7..aa12b079 100644 --- a/bot/exts/fun/fun.py +++ b/bot/exts/fun/fun.py @@ -12,7 +12,7 @@ from discord.ext.commands import BadArgument, Cog, Context from pydis_core.utils.commands import clean_text_or_reply from bot.bot import Bot -from bot.constants import Client, Colours, Emojis +from bot.constants import Bot, Colours, Emojis from bot.utils import helpers, messages log = logging.getLogger(__name__) @@ -58,7 +58,7 @@ class Fun(Cog): dice = " ".join(self._get_random_die() for _ in range(num_rolls)) await ctx.send(dice) else: - raise BadArgument(f"`{Client.prefix}roll` only supports between 1 and 6 rolls.") + raise BadArgument(f"`{Bot.prefix}roll` only supports between 1 and 6 rolls.") @commands.command(name="randomcase", aliases=("rcase", "randomcaps", "rcaps",)) async def randomcase_command(self, ctx: Context, *, text: str | None) -> None: -- cgit v1.2.3