You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Hello! I'm Yve Bot.
- message: What's your name?
name: name
type: String
replyMessage: Thanks for the answer, {name}!
validators:
- min: 4
- minWords: 1
- message: What city do you live in?
name: city
multiline: false
type: String
- message: I'll skip this message
skip: true
- message: Thanks, wait a moment.
The message "I'll skip this message" won't appear. OK.
Example 2:
- Hello! I'm Yve Bot.
- message: What's your name?
name: name
type: String
replyMessage: Thanks for the answer, {name}!
validators:
- min: 4
- minWords: 1
- message: What city do you live in?
name: city
multiline: false
type: String
- message: I'll skip this message
skip: false
- message: Thanks, wait a moment.
The message "I'll skip this message" won't appear. not OK, because I don't want to skip the message.
But if the value of skip is a function, it works normally. Example 3:
- Hello! I'm Yve Bot.
- message: What's your name?
name: name
type: String
replyMessage: Thanks for the answer, {name}!
validators:
- min: 4
- minWords: 1
- message: What city do you live in?
name: city
multiline: false
type: String
- message: I'll skip this message
skip: !!js/function >
function skip(output, rule, bot) {
return false;
}
- message: Thanks, wait a moment.
The Example 3 is OK, show the message "I'll skip this message"
The text was updated successfully, but these errors were encountered:
Nice catch! Thanks for the report. I will fix in a patch version.
I'm working on a new version v2, some things are changing, as well as improvements and a better-defined API.
Example:
The message "I'll skip this message" won't appear. OK.
Example 2:
The message "I'll skip this message" won't appear. not OK, because I don't want to skip the message.
But if the value of skip is a function, it works normally. Example 3:
The Example 3 is OK, show the message "I'll skip this message"
The text was updated successfully, but these errors were encountered: