SaihuBot

SaihuBot main instance.

new SaihuBot(config: Object, renderMessage: function, renderComponent: function)
Parameters
config (Object)
Name Description
config.adapter object Saihubot platform specific adapter.
config.brainConfig object brain related config.
config.notFoundMessages Array<string> default not found messages
config.saveChatLog boolean save chatlog or not (default: true), need coperate with brain in addon.
config.user string user prompt (default: me) , same as connfig.userAlias
config.userAlias string user prompt (default: me)
config.welcomeMessage string default welcome message (optional) messages (optional)
config.addons Array<object> addons array
config.skills Array<Object> skills array
config.debug boolean show debug messages
renderMessage (function) define how to render the message
renderComponent (function) define how to render the html component
Instance Members
responses
catchAll(msg)
processListeners(msg)
send(msg, role)
sendComponent(element, role)
ask(msg)
render()
hasRightDependency(requirements)