The state-chart.
Optional eventsIf you wish to have your Statebots listen to events coming from
a shared EventEmitter, you can pass it in here. The emit()/onEvent()/
performTransitions() methods will use it.
It should have the same signature as EventEmitter
Optional historyLimit how much history the state-machine keeps. Accessed via history.
Optional logHow noisy the logging is, from 1 to 3:
1) console.warn
2) console.warn/log/table
3) console.warn/log/table/info
3 is the default. Argument type-errors will always throw.
Optional startThe state in which to start. If unspecified, the first state in the chart will be used.
Generated using TypeDoc
Options for creating a Statebot.