Generic state, starting point for outgoing dispatches States have access to all bBot modules from the bot property. It has defined properties but can be extended with any key/value pair. Each thought process attaches timestamps if they are actioned. Provides proxies to envelope messages, so responses can be easily actioned.
Create new state, usually assigned as b
in middleware callbacks.
Create new state, usually assigned as b
in middleware callbacks.
Provide branches from current or new dialogue.
Get the conditions of the last matched branch.
Get an envelope for responding with, either pending or newly created.
Use property getter for last branch match (often the only match).
In the context of a branch callback, this provides a shorthand to the
branch that was just matched, as opposed to b.getMatching(id).match
.
Use property getting for match state (only matched branches are kept).
Proxy to use getMatchingBranch as property
Proxy to use setMatchingBranch as property
A strict version of matched, only true if not matched on act stage.
Access user from memory matching message details
Initialise a new state from this one's attribute.
Return the last dispatched envelope.
Indicate that no other branch should process this state.
Get a matched branch by it's ID or index (or last matched).
Indicate that no more thought processes should look at this state.
Get a pretty-printed view of the state without all the bot attributes.
Check for existing envelope without response.
Dispatch the envelope via respond thought process.
Set method for dispatching envelope responding to state.
Add to or create collection of matched branches.
Generated using TypeDoc
Generic state, starting point for outgoing dispatches States have access to all bBot modules from the bot property. It has defined properties but can be extended with any key/value pair. Each thought process attaches timestamps if they are actioned. Provides proxies to envelope messages, so responses can be easily actioned.