Back to Parent

when /hello/i
    message.reply(
      attachment: {
        type: 'image',
        payload: {
          url: 'https://i.imgur.com/esqGHm6.jpg'
        }
      }
    )
    message.reply(
      text: 'Memo\'s here!'
    )
    message.typing_on
    message.reply(
      attachment: {
        type: 'template',
        payload: {
          template_type: 'button',
          text: 'Would you like to become friends with Memo?',
          buttons: [
            { type: 'postback', title: 'Yes', payload: 'BE_FRIENDS' },
            { type: 'postback', title: 'No', payload: 'NOTBE_FRIENDS' }
          ]
        }
      }
    )


  else
    message.reply(
      attachment: {
        type: 'image',
        payload: {
          url: 'https://i.imgur.com/wqf4j61.jpg'
        }
      }
    )
    message.typing_on
    message.reply(
      text: 'Memo cannot understand. Play with Memo by typing "feed", "recollect" ,"create" or "read".'
    )
Click to Expand

Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0