I am trying to get the bot to only respond to direct messages
example @sdbot outages and it would respond
but nothing is happening
Am I doing something wrong here?
controller.hears(async (message) => message.text && message.text.toLowerCase() === 'outage', ['direct_message'], async (bot, message) => { await bot.reply(message, 'Here is a list of open Problem Records:'); });
I am trying to get the bot to only respond to direct messages example @sdbot outages and it would respond but nothing is happening Am I doing something wrong here?
controller.hears(async (message) => message.text && message.text.toLowerCase() === 'outage', ['direct_message'], async (bot, message) => { await bot.reply(message, 'Here is a list of open Problem Records:'); });