Skip to content

Instantly share code, notes, and snippets.

@ArjunHariharan
Last active April 23, 2017 14:16
Show Gist options
  • Save ArjunHariharan/1db18d8e3ecada6500c32d2dd9d2ae8e to your computer and use it in GitHub Desktop.
Save ArjunHariharan/1db18d8e3ecada6500c32d2dd9d2ae8e to your computer and use it in GitHub Desktop.
controller.hears(['device_failure'], 'direct_message,direct_mention,mention',
function (bot, message) {
let reply = 'Try pressing the power button for 30 seconds. ';
reply += 'Bring the phone to the service center if it does not start. ';
reply += 'Don't forget to carry your warranty card.';
bot.reply(message, reply);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment