diff --git a/bot.py b/bot.py index b07e5c8..9770262 100644 --- a/bot.py +++ b/bot.py @@ -101,6 +101,7 @@ class MessageHandler: for response in self.responses: response.respond(message) handled = True + break return handled diff --git a/example_config.json b/config.json similarity index 89% rename from example_config.json rename to config.json index e21527f..612c213 100644 --- a/example_config.json +++ b/config.json @@ -131,6 +131,24 @@ "text": "Stop annoying yourself." } ] + }, + { + "conditions": [ + { + "type": "text", + "text": "pieces" + }, + { + "type": "text", + "text": "peices" + } + ], + "responses": [ + { + "type": "text", + "text": "Put. It. Together." + } + ] } ] } \ No newline at end of file