diff --git a/bot.py b/bot.py index 9770262..c385382 100644 --- a/bot.py +++ b/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): diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..b066b22 --- /dev/null +++ b/build.sh @@ -0,0 +1,4 @@ +#!/bin/env bash + +sudo docker build . -f /home/scarzehd/Documents/dev/sc_annoy_bot/Dockerfile --tag git.scarzehd.com/scarzehd/sc_annoy_bot +sudo docker push git.scarzehd.com/scarzehd/sc_annoy_bot \ No newline at end of file diff --git a/config.json b/config.json index 6bc9544..bb8cd3a 100644 --- a/config.json +++ b/config.json @@ -181,6 +181,20 @@ "text": "https://tenor.com/view/nothing-ever-happens-nothing-look-at-the-time-nothing-clock-nothing-ever-happens-clock-gif-4518983960573307132" } ] + }, + { + "conditions": [ + { + "type": "match_word", + "text": "I am the one who" + } + ], + "responses": [ + { + "type": "text", + "text": "https://tenor.com/view/explaining-talking-speed-i-am-the-danger-skyler-gif-19043411" + } + ] } ] } \ No newline at end of file