Last active
May 1, 2020 20:44
-
-
Save MichaelBarney/022bfc9538aebd241b18e5db6f630cc5 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
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