Skip to content

Instantly share code, notes, and snippets.

@fhenri42
Last active December 14, 2016 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fhenri42/5c4c3ee32e9807168fd9d60aeba753f1 to your computer and use it in GitHub Desktop.
Save fhenri42/5c4c3ee32e9807168fd9d60aeba753f1 to your computer and use it in GitHub Desktop.
trainingMessage()
/* send back text and quick reply*/
function trainingMessage() {
return [{
type: 'text',
content: 'After a two hours trip, you land on Dagobah, the swamp-covered planet, to meet one of the oldest jedi of the galaxy: master Yoda.',
}, {
type: 'picture',
content: 'http://www.phoenixisrisen.co.uk/wp-content/uploads/2015/04/dagobah.jpg',
}, {
type: 'text',
content: 'To learn the true power of the Force, he presents you with two difficult tasks, one for the mind, and one for the body.',
}, {
type: 'text',
content: 'Let\'s start with a simple riddle:',
}, {
type: 'text',
content: 'During the battle of Hoth, you\'re faced with 1 Wampa and 3 AT-ST.',
}, {
type: 'text',
content: 'You know that your chances to win against the Wampa are 1 on 5 but your chances to defeat one AT-ST are 1 on 2.',
}, {
type: 'quickReplies',
content: {
title: 'They are approaching, and you need to take the first shot, fast! What do you do?!',
buttons: [
{
type: 'text',
title: 'Fight the Wampa',
value: 'Fight the Wampa',
}, {
type: 'text',
title: 'Fight the AT-ST',
value: 'Fight the AT-ST',
},
],
},
},
]
}
module.exports = trainingMessage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment