I have a bot running using botkit. I want to give a warning message that edited messages are ignored just when you're talking directly to the bot so I'm doing:
controller.on('message_changed', function(bot, message) {
bot.reply(message, ":warning: Your edit was ignored.");
});
The bot is in a room with many people so that those people can have "access" to the bot privately.
Problem: When someone edits a message in the room, the bot sends the warning. What's the best way to avoid this?
I'm hoping to avoid hard-coding the room ID into the room that the bot shouldn't reply to since we might have the bot in other rooms.