init
Description
init
— tag that allows you to specify the js-script to be executed when the bot script is loading. This js-script can install some handlers, create temporary variables, and perform other initialization.
Value type
- multiline string (JavaScript)
Parameters
- none
Nested data
- multiline data
How to use
init: myModule.init()
init:
state.bind("preProcess", myModule.preProcess)
state.bind("postProcess", function () { … } )