RocketChat / hubot-rocketchat

Rocket.Chat Hubot adapter
MIT License
578 stars 228 forks source link

how to get a username #299

Closed shellyng closed 6 years ago

shellyng commented 6 years ago

I try to get a user name but, when someone else calls the bot the name changes.

I'm using this command: name = context.response.message.user.id

timkinnane commented 6 years ago

@shellyng What do you mean the name changes? Are you trying to get the name of the user messaging the bot? That would change if the message comes from someone else... 🤷‍♂️

shellyng commented 6 years ago

ah ok i understand , but how i get the username and when the other person call the bot this name doesn't change?