I have a bot using botkit. I want to give a warning message that edited messages are ignored when you speak directly to the bot, so I do:
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 these people can "access" the bot privately.
Problem . When someone edits a message in the room, the bot sends a warning. What is the best way to avoid this?
I hope to avoid hard-coding the identifier of the room in the room that the bot should not respond to, since we may have a bot in other rooms.
source share