mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -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)
|
logs.log('SpiceBot_AI', "Found " + str(self.dict['counts']) + " " + 'aiml' + " commands.", True)
|
||||||
|
|
||||||
def on_message(self, message):
|
def on_message(self, message):
|
||||||
|
try:
|
||||||
aiml_response = self.aiml_kernel.respond(message)
|
aiml_response = self.aiml_kernel.respond(message)
|
||||||
|
except WARNING:
|
||||||
|
return None
|
||||||
return aiml_response
|
return aiml_response
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user