mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
WARNING
This commit is contained in:
parent
57202cd117
commit
405d64d9dc
@ -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
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user