fix links in chatbot #12
This commit is contained in:
1 parent
67a82abaca
commit
7be76c00c3
1 file changed
+1
-1
+1
-1
@@ -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!
|
||||
|
||||
Reference in new issue
Block a user