How to make bot mention someone with message?
Opened this issue · 3 comments
tutyamxx commented
Hello, I am having a bit of a problem, I don't know how to make bot mention someone @name. For example I type "hello" and I want the bot to mention me back with the message "hello there".
Help please
i-emek commented
Hey,
You have to use message formatting provided by slack.
bot.postMessageToUser('username',"Hey <@userid>, thanks for submitting your report.", params)
and that's all
tutyamxx commented
Thanks. My brain lagged lol
I appreciate the reply!
…On Mon, 8 Jul 2019, 16:48 Kaygi22, ***@***.***> wrote:
Hey,
You have to use message formatting provided by slack.
bot.postMessageToUser('username',"Hey ***@***.***>, thanks for submitting
your report.", params)
and that's all
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#128?email_source=notifications&email_token=ADZQ4XMX6JJJCVM77HJASITP6NOUHA5CNFSM4H6MNW32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZNQKRY#issuecomment-509281607>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADZQ4XJ3KVCALFOCFKZUQ53P6NOUHANCNFSM4H6MNW3Q>
.
i-emek commented
You're welcome ^^