Fixed match word condition
This commit is contained in:
4
bot.py
4
bot.py
@@ -44,6 +44,10 @@ class MatchWordCondition(MessageCondition):
|
||||
if word == self.text:
|
||||
return True
|
||||
|
||||
processed_condition = process_string(self.text, False, self.filter_case, self.filter_punctuation)
|
||||
if processed_condition in processed:
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
class AndCondition(MessageCondition):
|
||||
|
||||
Reference in New Issue
Block a user