diff --git a/Chatbot.py b/Chatbot.py index 063ed3c..7560e4d 100644 --- a/Chatbot.py +++ b/Chatbot.py @@ -235,7 +235,7 @@ class Chatbot(commands.Cog): nosIds = re.findall(r'\d+', messageContent) if nosIds: self.nosPosts.append(nosIds[0]) - elif messageContent[0:7] == "http://" or messageContent[0:8] == "https://": + elif "http://" in messageContent or "https://" in messageContent: pass # Een link. Negeer. TODO: post af en toe een random link die geen repost is else: # Usable message!