https://api.slack.com/apps?new_app=1
You can bundle a bot user with your app to interact with users in a more conversational manner.
click the Add Bot User button and then Save Changes.
The Events API is a bot‘s equivalent of eyes and ears. It gives a bot a way to react to posted messages, changes to channels, and other activities that happen in Slack. When these events happen, a data payload will be sent to your bot, and it can use that data to form a useful response.
ref: https://github.com/nlopes/slack/blob/master/examples/eventsapi/events.go
原文:https://www.cnblogs.com/GuoXinxin/p/11211479.html