mirror of
https://github.com/zhayujie/bot-on-anything.git
synced 2026-01-19 01:21:06 +08:00
fix: sensitive word check bug #202
This commit is contained in:
@@ -19,7 +19,7 @@ def hello_world(msg):
|
||||
sensitive_words = [line.strip() for line in f.readlines()]
|
||||
found = False
|
||||
for word in sensitive_words:
|
||||
if word in msg.content:
|
||||
if word != '' and word in msg.content:
|
||||
found = True
|
||||
break
|
||||
if found:
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
|
||||
|
||||
Reference in New Issue
Block a user