Update system.py

This commit is contained in:
SpudGunMan
2024-09-01 00:43:20 -07:00
parent 0f428438a3
commit f31f920137
+2
View File
@@ -510,6 +510,8 @@ def get_wikipedia_summary(search_term):
def messageTrap(msg):
# Check if the message contains a trap word
if "wiki:" in msg or "ask:" in msg:
return True
message_list=msg.split(" ")
for m in message_list:
for t in trap_list: