added deck.chat modules
This commit is contained in:
@@ -25,6 +25,7 @@ class DeckChat:
|
||||
Register a new handler inside the chat instance.
|
||||
The handler accepts two parameters: a message and a state object,
|
||||
and returns the response and the new state object.
|
||||
If the returned state object is None, then the chat loop exits.
|
||||
Non-command handler is registered under the 'default' command.
|
||||
"""
|
||||
cmd = command.strip().lower()
|
||||
|
||||
Reference in New Issue
Block a user