diff --git a/conf/keyword.json b/conf/keyword.json deleted file mode 100644 index b5e497e..0000000 --- a/conf/keyword.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Keywords": [ - "example", - "s" - ], - "KeywordsExcept": {} -} \ No newline at end of file diff --git a/modules/keyword.py b/modules/keyword.py index 83205a6..36e9f9b 100644 --- a/modules/keyword.py +++ b/modules/keyword.py @@ -35,6 +35,8 @@ def sendMaster(data): main.connections[i].send(data) def isKeyword(msg): + if msg == None: + return message = msg.lower() messageDuplicate = message toUndo = False @@ -67,6 +69,8 @@ def isKeyword(msg): return [message, uniqueNum, totalNum] def actKeyword(user, channel, message, nickname, actType, name): + if message == None: + return toSend = isKeyword(message) if name == main.config["Master"][0] and channel == main.config["Master"][1]: pass