diff options
author | 2021-04-23 02:59:30 +0300 | |
---|---|---|
committer | 2021-04-23 02:59:30 +0300 | |
commit | 9e03064e9c116b0dd2bcc65b149b7ac9ee389ff3 (patch) | |
tree | dfb295b69ab9031b4079b9fd3d4dbc44941edb13 /bot/exts/evergreen/catify.py | |
parent | Adds Link Suppressing Helper (diff) |
Suppresses Links In Commands
Suppresses links in certain commands that can echo back user input.
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'bot/exts/evergreen/catify.py')
-rw-r--r-- | bot/exts/evergreen/catify.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/evergreen/catify.py b/bot/exts/evergreen/catify.py index ae8d54b6..d8a7442d 100644 --- a/bot/exts/evergreen/catify.py +++ b/bot/exts/evergreen/catify.py @@ -6,6 +6,7 @@ from discord import AllowedMentions, Embed, Forbidden from discord.ext import commands from bot.constants import Cats, Colours, NEGATIVE_REPLIES +from bot.utils import helpers class Catify(commands.Cog): @@ -74,7 +75,7 @@ class Catify(commands.Cog): else: string_list.insert(random.randint(0, len(string_list)), random.choice(Cats.cats)) - text = " ".join(string_list) + text = helpers.suppress_links(" ".join(string_list)) await ctx.send( f">>> {text}", allowed_mentions=AllowedMentions.none() |