mainbot.js: change comment style for handler example
This commit is contained in:
parent
a4e8ea0390
commit
f5a894fe37
@ -20,9 +20,10 @@ const dialog = {
|
|||||||
stateful_msg_handlers: {
|
stateful_msg_handlers: {
|
||||||
start: {}, // everything is by default, so just send message `start`
|
start: {}, // everything is by default, so just send message `start`
|
||||||
enter_name: {
|
enter_name: {
|
||||||
handler: "enter_name", // name of the handler function. This field has a
|
// name of the handler function. This field has a side effect:
|
||||||
// side effect: when is set, no automatic sending
|
// when is set, no automatic sending of message, should be sent
|
||||||
// of message, should be sent manually in handler
|
// manually in handler
|
||||||
|
handler: "enter_name",
|
||||||
state: "none"
|
state: "none"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user