This repository was archived by the owner on Sep 20, 2024. It is now read-only.
This repository was archived by the owner on Sep 20, 2024. It is now read-only.
heard_trigger event throws error when the heard message is sent by another bot #1176
Open
Description
Hi all,
You can reproduce this issue with the following scenario:
BotA sends a message to a public channel. A BotB has a hear pattern configured which picks up the BotA's message and if we use the heard_trigger
event on this message an error is thrown.
The error is caused by the md5 hash created by the botkit/lib/Studio.js
(line 721). The heard_trigger
is trying to md5(message.user)
but since the message is sent by a bot the message.user
property doesn't exist and the heard_trigger
throws an error.