slack

How do I make a slack bot leave a channel?

谁说胖子不能爱 提交于 2020-12-02 00:07:45
问题 Bots cannot use the regular channels.leave API call, so how do I make a bot leave a channel, short of kicking it? I need it to leave a channel where I do not have rights to kick users. 回答1: You can /remove (or /kick ) the bot. Type /kick @botname in the channel which you want the bot to leave. 回答2: If you are asking about Slackbot in particular, you cannot remove it from a channel (see Slack's response to this question). If you have permission to delete Slackbot's responses, you can install

How do I make a slack bot leave a channel?

生来就可爱ヽ(ⅴ<●) 提交于 2020-12-02 00:06:39
问题 Bots cannot use the regular channels.leave API call, so how do I make a bot leave a channel, short of kicking it? I need it to leave a channel where I do not have rights to kick users. 回答1: You can /remove (or /kick ) the bot. Type /kick @botname in the channel which you want the bot to leave. 回答2: If you are asking about Slackbot in particular, you cannot remove it from a channel (see Slack's response to this question). If you have permission to delete Slackbot's responses, you can install

Building a slack bot in node.js, throwing an error I can't make sense of. Has anyone seen this before?

隐身守侯 提交于 2020-08-27 07:39:05
问题 I am trying to build a slack bot, and I have come across an error I can't make sense of. This is the error: /Users/maecapozzi/Desktop/maebot/node_modules/vow/lib/vow.js:104 throw e; ^ Error: [Slack Bot Error] undefined at assert (/Users/maecapozzi/Desktop/maebot/node_modules/slackbots/libs/utils.js:15:15) at /Users/maecapozzi/Desktop/maebot/node_modules/slackbots/index.js:42:9 at Array.<anonymous> (/Users/maecapozzi/Desktop/maebot/node_modules/vow/lib/vow.js:712:56) at Immediate.callFns [as

Open URL in browser from Message Button using Slack API

淺唱寂寞╮ 提交于 2020-07-20 07:04:54
问题 I am sending the users a slack message with a button through a Slack App. On every click of the button, I generate a new URL. At the moment, I am able to return the URL back as a message. The user clicks on the message to open the URL in the browser. Instead of the sending a message back, I want to open the URL directly in the browser using slack API. How can I accomplish it? I can't seem to find anything in the documentation that does that. Thanks PS: Google Drive integration does that

Open URL in browser from Message Button using Slack API

亡梦爱人 提交于 2020-07-20 07:04:33
问题 I am sending the users a slack message with a button through a Slack App. On every click of the button, I generate a new URL. At the moment, I am able to return the URL back as a message. The user clicks on the message to open the URL in the browser. Instead of the sending a message back, I want to open the URL directly in the browser using slack API. How can I accomplish it? I can't seem to find anything in the documentation that does that. Thanks PS: Google Drive integration does that