diff options
author | 2020-10-18 17:38:11 +0200 | |
---|---|---|
committer | 2020-10-18 17:38:11 +0200 | |
commit | 0813c581a1edc741ea09747940e80d893afa04c8 (patch) | |
tree | 81c4b4f26dda5e0f7e4db1acc210cfc5a1c24f55 /bot/exts/evergreen/fun.py | |
parent | Merge pull request #506 from WillDaSilva/tmdb-attribution (diff) |
Change error msg for roll to use correct prefix
- Previously used `!` as the prefix, while `.` is the correct one
- Now imports prefix from bot.constants, so it'll always be up to date
Diffstat (limited to 'bot/exts/evergreen/fun.py')
-rw-r--r-- | bot/exts/evergreen/fun.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/fun.py b/bot/exts/evergreen/fun.py index 231e6d54..101725da 100644 --- a/bot/exts/evergreen/fun.py +++ b/bot/exts/evergreen/fun.py @@ -10,7 +10,7 @@ from discord.ext import commands from discord.ext.commands import BadArgument, Bot, Cog, Context, MessageConverter, clean_content from bot import utils -from bot.constants import Colours, Emojis +from bot.constants import Client, Colours, Emojis log = logging.getLogger(__name__) @@ -70,7 +70,7 @@ class Fun(Cog): dice = " ".join(self._get_random_die() for _ in range(num_rolls)) await ctx.send(dice) else: - raise BadArgument("`!roll` only supports between 1 and 6 rolls.") + raise BadArgument(f"`{Client.prefix}roll` only supports between 1 and 6 rolls.") @commands.command(name="uwu", aliases=("uwuwize", "uwuify",)) async def uwu_command(self, ctx: Context, *, text: clean_content(fix_channel_mentions=True)) -> None: |