howdyai / botkit-starter-web

Botkit Anywhere - a starter kit for building a bot that lives in your website or app
https://botkit.ai
MIT License
113 stars 75 forks source link

get user info #36

Closed DnsFilth closed 6 years ago

DnsFilth commented 6 years ago

how i can get the user info, if i am saving it like: var options = { id: "45654676544", name: "test", last_name: "something" }

Botkit.boot(options);

I want that the bot reply "Hello test" if i write

controller.hears('Caca','message_received', function(bot, message) { bot.reply(message, ""+ message.user); //here i just get the id but is diferent });