From 46ec8d1aa83d5748763c0b53376e22b56ea80d98 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Thu, 25 Jun 2020 08:46:36 +0100 Subject: [PATCH] Added error handling for people trying to use ~help --- cogs/AnimeImages.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cogs/AnimeImages.py b/cogs/AnimeImages.py index 916cb285..622bef12 100644 --- a/cogs/AnimeImages.py +++ b/cogs/AnimeImages.py @@ -203,6 +203,7 @@ class Waifus(commands.Cog): # Cog on_message for waifus and husbandos @commands.Cog.listener() + # Cooldown NOT WORKING @cooldown(1, 1, BucketType.user) async def on_message(self, message): @@ -271,6 +272,9 @@ class Waifus(commands.Cog): # Makes sure that the user wants a specific image of a husbando elif user_msg.startswith('~h'): + # Making sure that the commands don't conflict with ~help + if user_msg.endswith('~help'): + return # Define who the husbando is using string splitting husbando_split_msg = user_msg.split("h ", 1)