diff options
author | 2021-04-23 07:07:27 +0300 | |
---|---|---|
committer | 2021-04-23 07:07:27 +0300 | |
commit | d02c79e569092dbd6823f2edb6c78ed8ab1bcae4 (patch) | |
tree | dfb295b69ab9031b4079b9fd3d4dbc44941edb13 /bot/exts/evergreen/catify.py | |
parent | Merge pull request #697 from ToxicKidz/fix_catify (diff) | |
parent | Suppresses Links In Commands (diff) |
Merge pull request #704 from python-discord/link-suppressing
Suppress Links In Certain Commands
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() |