我希望我的机器人只有在有人提到它的名字时才会回应@mybot。
如何做到这一点?
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.