首页 > 其他 > 详细

slack Interface operation

时间:2019-07-19 14:07:02      阅读:95      评论:0      收藏:0      [点我收藏+]

1. create a new app

https://api.slack.com/apps?new_app=1

技术分享图片

2. Add a Bot User

You can bundle a bot user with your app to interact with users in a more conversational manner.

  • Set button ‘Always Show My Bot as Online‘ to on

技术分享图片

click the Add Bot User button and then Save Changes.

3. Setting up the Events API (Communication can also be achieved without this operation)

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. 

  • click the Event Subscriptions feature & Switch the Enable Events toggle to on 
  • configure the Request URL

Events API

 ref: https://github.com/nlopes/slack/blob/master/examples/eventsapi/events.go

slack Interface operation

原文:https://www.cnblogs.com/GuoXinxin/p/11211479.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!