@-mentions
See original GitHub issueIs there an easy way to detect @-mentions without using a higher level kit like howdy? I hacked something together by capturing the bot’s ID on the rtm.start
event (as in the Readme) and shoving it into a regex… but that feels really brittle. I don’t see “mention” anywhere in any of the event enumerations.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Mentions - definition of mentions by The Free Dictionary
mention ; 1. to refer to or speak about briefly or incidentally ; 2. to acknowledge or honour ; 3. not to mention...
Read more >71 Synonyms & Antonyms for MENTIONS - Thesaurus.com
Find 71 ways to say MENTIONS, along with antonyms, related words, and example sentences at Thesaurus.com, the world's most trusted free thesaurus.
Read more >MENTION | definition in the Cambridge English Dictionary
to speak about something quickly, giving little detail or using few words: I'll mention your ideas to Jacinta. [ + (that) ] He...
Read more >Mention
Brand insights at your fingertips. Mention enables brands and agencies to monitor the web, listen to their audience and manage social media.
Read more >81 Synonyms & Antonyms of MENTIONS - Merriam-Webster
a formal recognition of an achievement or praiseworthy deed received a special mention for her submission to the exhibition of local artists.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
rtm.activeUserId
should contain the ID you’re looking for: https://github.com/slackhq/node-slack-client/blob/b4f18a482e7a34d3d03c89f221e61a669c94b643/lib/clients/rtm/client.js#L267Use
text.indexOf
/text.match
if you’re in an environment without.includes
.👍 thanks @ekmartin, that works great!