diff --git a/sopel_modules/SpiceBot/AI.py b/sopel_modules/SpiceBot/AI.py index 3c53b69..4a355b8 100644 --- a/sopel_modules/SpiceBot/AI.py +++ b/sopel_modules/SpiceBot/AI.py @@ -33,7 +33,10 @@ class SpiceBot_AI(): logs.log('SpiceBot_AI', "Found " + str(self.dict['counts']) + " " + 'aiml' + " commands.", True) def on_message(self, message): - aiml_response = self.aiml_kernel.respond(message) + try: + aiml_response = self.aiml_kernel.respond(message) + except WARNING: + return None return aiml_response