Created
August 23, 2019 09:38
-
-
Save RSamaium/cf5269ed9f45593fee7b745ae9e01c5e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$name = '' | |
@Event('start') | |
start() { | |
> Hey ! My name is ChatBot, and you ? | |
Prompt() | |
$name = :text | |
> Hello { $name } | |
} | |
@Event('on', 'AMAZON.StopIntent') | |
@Intent('input.bye', [ | |
'Bye', | |
'Good bye', | |
'See you later' | |
]) | |
bye() { | |
> Bye { $name } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment