slack

Hubot with slack adapter - cannot perform rtm.start

梦想与她 提交于 2019-12-11 12:15:14
问题 I'm trying to have hubot + slack on my local machine. installed hubot and slack client. running: bin\hubot -a slack and got error (after adding log messages to the script) INFO Connecting... INFO { ok: false, error: { [Error: socket hang up] code: 'ECONNRESET' } } from reading code in node_modules\slack-client\src\client.js found the problem occurs in a POST request: Client.prototype.login = function() { this.logger.info('Connecting...'); return this._apiCall('rtm.start', { agent: 'node-slack

How to message a user in a slack App via API?

a 夏天 提交于 2019-12-11 11:30:16
问题 When creating a slack app, it creates a new "channel" in the left hand menu. I want to be able to send a message to specific users and not to all users in a workspace who have integrated with the app. For example, if I make the following request: curl -X POST -H 'Content-type: application/json' --data '{"text":"Hello, World!"}' https://hooks.slack.com/services/ABxxx/CDxxx/EFxxxxxx It will send a message to all users who have integrated with my app with the text "Hello World". But I only want

Implement conversations.create in C#

穿精又带淫゛_ 提交于 2019-12-11 09:53:05
问题 I am looking at Slack’s documentation on conversations.create and I’m not sure how to integrate it in C#. Do I need to import their Slack API solution into my code to use it? Any help would be great! 回答1: To create a channel with C# all you need to do is make a POST request to the respective API method. channels.create will work, but I recommend the newer conversations.create API method. There are many way how to you can make a POST request in C#. Here is an example using HttpClient , which

Is it possible to use slack API to remove a user without paid version

跟風遠走 提交于 2019-12-11 09:45:33
问题 I need to find a way to remove a user from my slack team without having a paid version of slack. I found this API method: users.admin.setInactive But it requires me to have a paid version. Are there any workarounds to make this possible on a free tier Slack? 回答1: No. Unfortunately, deactivating a user by API is only possible with a paid version of Slack. But I can offer a few organizational workarounds from my experience with managing large Slack teams on free tier that makes work easier for

How to integrate with slack similar to how google drive did?

♀尐吖头ヾ 提交于 2019-12-11 07:31:54
问题 I had gone through the documentation of slack on how to develop slack app. When i installed google drive slack app i saw that the google drive options(create new file, etc) can be accessed when clicking the '+' button on the left side of send message input. How is this achieved? 回答1: Unfortunately, this feature is not available to all 3rd party developers. In general there is a difference between the features available to all developers and to companies that have develop apps in close

Multiple attachment with single callback_id: slack interactive component

白昼怎懂夜的黑 提交于 2019-12-11 07:29:17
问题 Is it possible to have multiple menu attachment and allow users to select each menu before sending back the collated response? return Promise.resolve({ text: `Rate each game`, attachments: [ ...games.map(game => ({ color: "#5A352D", title: game, callback_id: "game:done", actions: [ { name: "done", text: "Select a score", type: "select", value: "game:done", options: [ { text: 1, value: 1 }, { text: 2, value: 2 } ] } ] })) ] }); This images shows how it renders But, I need to call the callback

Create slack channel using slack app

♀尐吖头ヾ 提交于 2019-12-11 06:19:57
问题 I have a private slack application (developed by user 'X' from team 'XT') I have a web server knows how to complete the Oauth process and generate tokens per teams Now- as a user Y from team YT I am installing the slack app on my YT team and get a token, using that token I perform API call for channels.create , I got into my team (aka YT) and indeed I see that the channel was created , BUT it's written that the channel was created by the specific user that installed the slack app, meaning

Slack logon trigger

≡放荡痞女 提交于 2019-12-11 06:12:41
问题 I want to create something in Slack that sends a message (starting by calling someone with '@') to a channel when specific users login. I've checked ifttt and zapier. I also checked the slack api to create something myself, but I couldn't really find anything usefull. Anyone has any ideas? 回答1: Slack does not track user login or logoff in a traditional sense. Instead, users are always always "logged in" and available to receive messages once they have joined a team / channel. There also is

Settings of Incoming WebHooks configuration are ignored

依然范特西╮ 提交于 2019-12-11 03:25:52
问题 We have created an Incoming WebHooks configuration so that Dynatrace can post alerts to our development channel. This worked great for a while, but later on, we decided to use a separate "operations" channel for notifications. So I changed the "Post to Channel" setting of our Incoming WebHooks configuration and expected that the notifications would appear in the new channel. However Slack seems to ignore my new "Post to Channel" setting. It keeps posting to the previously configured channel.

Python can't find installed module ('slackclient')

♀尐吖头ヾ 提交于 2019-12-11 03:23:57
问题 I am trying to build a slack bot for learning purpose but when I run the script get this error ModuleNotFoundError: No module named 'slackclient' I tried install and uninstall and then re-install with python -m pip install slackclient import os import time import re from slackclient import SlackClient # instantiate Slack client slack_client = SlackClient(os.environ.get('SLACK_BOT_TOKEN')) if __name__ == "__main__": if slack_client.rtm_connect(with_team_state=False): print("Starter Bot