Skip to content
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
@gianniszach

Description

@gianniszach

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.

Metadata

Metadata

Assignees

Labels

Botkit Studiobuglegacypertaining to version 0.7 or belownext_releasethis issue is accepted for inclusion in the next release of botkit

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions