首页 > 解决方案 > 如何让 Slack Bot 不回复私人群组中的所有消息?

问题描述

我希望我的机器人只有在有人提到它的名字时才会回应@mybot

如何做到这一点?

标签: slackslack-apislack-commands

解决方案


For that you need to use the Events API and subscribe to the event app_metion.

That way your app will receive all message that directly mention your bot with @mybot.

Those messages will be sent as request from Slack to the endpoint provided for receiving events.


推荐阅读