fix: sensitive word check bug #202

This commit is contained in:
zhayujie
2023-03-26 13:08:58 +08:00
parent 427866c7cf
commit f6d7a203d8
2 changed files with 1 additions and 2 deletions

View File

@@ -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:

View File

@@ -1 +0,0 @@