I want to add my bot to a Slack channel. But I want it to ignore conversation until it is addressed directly, e.g.:
me: hi! me: hi! me: @bot hi! bot: why hello t
A quick solution could be the following:
bot.dialog('/', [ function(session, params) { if(session.message.text.includes('@bot')) { // ... start the conversation's flow } } ]);
Hope it helps!