|
RE: User's input |
You can use patterns and templates from the "Training & Chat Logs" page.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 state EnterCode { pattern "*" that "Please enter your code." template checkCode(); pattern "*" template "Please enter your code."; function checkCode() { if (star.startsWith("07")) { return "Welcome 07 user"; } else if (star.startsWith("06")) { return "Welcome 06 user"; } return "Invalid code"; } } See also, Self https://www.botlibre.com/forum-post?id=705860 Patterns https://www.botlibre.com/forum-post?id=15948 Templates https://www.botlibre.com/forum-post?id=16008 Also check out examples in our script library, and it your bot's bootstrap scripts. |
|
|
|
|