I am modifying from a bot on Github. The bot can ask for a user's name and then reply "Great! I'll call you ${name}".
I've modified the bot to ask for a user's name and email. The question is how to get the bot to reply with those values (eg. "Your name is ${name} and email is ${email}").
response: {
receive: (bot, message) => {
return bot.getProp(`name`,`email`)
.then((name,email) => bot.say(`value1:${name} nvalue2:${email}`));
}
},
Right now the response I am getting is:
"Value 1: Joe Value 2: undefined"
What should I do to get it to answer value 1 and 2 correctly in one sentence? Thanks in advance for any help / pointers.
Aucun commentaire:
Enregistrer un commentaire