Skip to content

Instantly share code, notes, and snippets.

@MichaelBarney
Last active May 1, 2020 20:44
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 MichaelBarney/022bfc9538aebd241b18e5db6f630cc5 to your computer and use it in GitHub Desktop.
Save MichaelBarney/022bfc9538aebd241b18e5db6f630cc5 to your computer and use it in GitHub Desktop.
module.exports = function(controller) {
controller.hears(new RegExp(/^meu nome é (.*?)$/i), 'message', async(bot, message) => {
let param = message.matches[1];
await bot.reply(message, `Bem-vindo ${ param }!`);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment