aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/easter
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-04-23 02:59:30 +0300
committerGravatar Hassan Abouelela <[email protected]>2021-04-23 02:59:30 +0300
commit9e03064e9c116b0dd2bcc65b149b7ac9ee389ff3 (patch)
treedfb295b69ab9031b4079b9fd3d4dbc44941edb13 /bot/exts/easter
parentAdds 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/easter')
-rw-r--r--bot/exts/easter/egg_decorating.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/exts/easter/egg_decorating.py b/bot/exts/easter/egg_decorating.py
index b18e6636..a847388d 100644
--- a/bot/exts/easter/egg_decorating.py
+++ b/bot/exts/easter/egg_decorating.py
@@ -10,6 +10,8 @@ import discord
from PIL import Image
from discord.ext import commands
+from bot.utils import helpers
+
log = logging.getLogger(__name__)
with open(Path("bot/resources/evergreen/html_colours.json"), encoding="utf8") as f:
@@ -65,7 +67,7 @@ class EggDecorating(commands.Cog):
if value:
colours[idx] = discord.Colour(value)
else:
- invalid.append(colour)
+ invalid.append(helpers.suppress_links(colour))
if len(invalid) > 1:
return await ctx.send(f"Sorry, I don't know these colours: {' '.join(invalid)}")