slack

Changing status of other users on a free plan Slack

Deadly 提交于 2019-12-11 01:56:01
问题 It always updates my user profile instead of the user that I specify in X-Slack-User: https://slack.com/api/users.profile.set?token=yadayadayada&X-Slack-User=XYZ23456&Content-type=application/json&charset=utf-8&profile={"status_text": "Test #1","status_emoji": ":gb:","status_expiration": "5"} The user Ids that I tried to specify are valid ones, I'm an admin and I created an app with the required rights, the legacy token did no good as well, this works, but just for my user, X-Slack-User is

Custom Slack Bot cannot connect

江枫思渺然 提交于 2019-12-11 01:28:12
问题 I've been trying to make a slack bot that replies to simple queries and does some simple stuff to help around the office. The bot works fine, it just seems that it cannot seem to connect to Slack from behind our proxy. When I test it from my own mobile internet connection it works fine, but when trying to run it behind the proxy it cannot connect to slack. Is there any way I can configure proxy settings for the bot to use when it connects? This is all very strange to me because Slack is not

Send a text to Slack Webhook containing selected user

江枫思渺然 提交于 2019-12-11 01:08:47
问题 I am trying to send a message from Google Apps Script to Slack via a Webhook URL that works great, but I can't figure out how to send a highlighted or selected user in that text. For example '@UsernameTest how are you?' is something I want to send to a person or channel, but it doesn't work. I figured out that to highlight the channel i.e. send '@Channel' I just needed to write , but that is not what I want. I tried <@UserID> but it still didn't work. (I Received the UserID by using inspector

slack slash commands show response only to channel

妖精的绣舞 提交于 2019-12-10 20:24:06
问题 slack provides only two types of responses: ephemeral = make the command and response shown to the user only. in_channel = make the command and response shown to all users in channel. ephemeral example: in_channel example: Question: how can i make a slash command show response only in channel and not show both command and response? 回答1: ok so i found my question's answer, it is said in slack's api that The only user-facing difference between immediate responses and delayed responses is that

How to store configuration items in a Slack App

自作多情 提交于 2019-12-10 19:54:58
问题 How do you store permanent data in a Slack Application? For example, the Opsidian slack app has a command to add your AWS keys. Where does it store those keys and how does it know to use specific keys for specific teams? Is this on the Opsidian side? If that's the case does it just use the team.info endpoint and use that every command to match it up? I have searched their documentation and Google with no luck. 回答1: A slack app usually consists of program code (e.g. PHP) and a database (e.g.

Cannot delete a chat message via Slack API

假装没事ソ 提交于 2019-12-10 18:27:00
问题 I have a Slack team with a public channel. My goal is to use the channel only for announcements posted by bot-A. I understand that it is not possible to configure Slack channel to be writable for only one person and read-only for the rest, I created a bot-B (Python thing running on an external machine) that monitors the channel via RTM and if there is any message not coming from bot-A, bot-B's task is to delete the message by calling chat.delete (https://api.slack.com/methods/chat.delete).

how to handle outgoing-webhook (Slack) using php

試著忘記壹切 提交于 2019-12-10 18:16:41
问题 i have configured Slack outgoing-webhook, but i'm not sure how to handle HTTP POST request which was send by Slack to my specified URL. Workflow is like this. when someone sends a message to specified channel, then an HTTP POST request will be sent by API to one of the specified URL (on which i can do something with that POST). Currently i'm not able to handle that request in my PHP code. i used below code, as it works for POSTs made by forms. <?php if(isset($_POST['text'])){ echo $_POST[

Embed slack on a html page

陌路散爱 提交于 2019-12-10 13:58:53
问题 I am having trouble embedding a slack feed onto a html site. When I try to use an iframe, it just shows up as a white box. I have tried using jquery <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"> . </script> <script> $("#testLoad").load("http://www.SlackURLHere"); </script> </head> <body> <div id="testLoad"></div> <iframe src="http://www.SlackURLHere"></iframe> </body> </html> I have tried with "http" and "https" on both iframe

Why Slack is causing Windows 10 BSOD?

天涯浪子 提交于 2019-12-10 13:44:24
问题 I have experienced BSOD every time I have resumed laptop from sleep. I have analyzed the minidump using WinDbg and the causing processes is always Slack.exe . I have googled a bit I have found https://www.tenforums.com/bsod-crashes-debugging/80584-0x139-bsods-daily-when-waking-up-sleep.html. Their suggestion is not to use Windows 10 Slack version or close it before going to sleep. What is the real reason that Slack.exe is causing this BSOD? I assume that Slack does not directly contain any

How to add @ mention in response to slash commands in slack

吃可爱长大的小学妹 提交于 2019-12-10 13:05:37
问题 How can I make slack parse @someone mentions as links to the user instead of plaintext. I've been reading slack documentation on message formatting but still haven't figured it out. Here's an example of what I'm getting now: { "text": "*username:* @alexis", "response_type": "ephemeral" } 回答1: To make a proper "clickable" mention, you need to pass the unique user ID and not the plaintext name. The format of the user ID is: U024BE7LH and a mention would look like this: <@U024BE7LH> Ther user ID