This repository has been 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
Labels
Botkit Studio
bug
legacy
pertaining to version 0.7 or below
next_release
this issue is accepted for inclusion in the next release of botkit
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). Theheard_trigger
is trying tomd5(message.user)
but since the message is sent by a bot themessage.user
property doesn't exist and theheard_trigger
throws an error.The text was updated successfully, but these errors were encountered: