slack

Can I use the Slack API to set the profile picture?

耗尽温柔 提交于 2019-12-23 12:12:35
问题 I am running a Slack team for a gaming community. My users all have avatars in the game and I am already using the Slack API to automatically set their Slack user name to their in-game name, so its easier for people to be recognized. In addition I would also like to automatically set their profile picture in Slack with their avatar picture from the game. However I could not figure out a way to do it, so my question is can it be done and if yes, how? My current starting point is the

Laravel 5.5 On demand notification with slack

耗尽温柔 提交于 2019-12-23 10:33:51
问题 According to this page, we can send a notification on demand without going through a model. How do I do the same using slack? I want to do something like this: $emailAddress = 'my email address'; Notification::route('mail', $emailAddress) ->route('slack', 'what do I put here?') ->notify(new TestNotification()); The code works without the slack line. Edit: this StackOverflow question uses the on demand method 回答1: You should you put the Slack Webhook URL. See: https://laravel.com/docs/5.5

How to Send Periodic Ephemeral (“Hidden”) Messages From a Slack Bot

耗尽温柔 提交于 2019-12-23 07:57:18
问题 I am interested in writing a Slack bot that will periodically send "ephemeral" messages to users. Ephemeral messages are messages that appear within a channel, but can only be seen by a particular user, like the responses to bot "slash commands" (e.g. "/who"). The goals here, however, are to have ephemeral messages sent periodically by the bot and: appear within the channel message stream (i.e. not in a DM/private message), and not in response to any slash command. How do I use the APIs to

Laravel Logging to Slack Workbook causes “Curl error (code 3): <url> malformed”

安稳与你 提交于 2019-12-23 03:31:51
问题 I just set up a webhook in Slack to send logging to from my Laravel app. When the log line executes, this error pops up: RuntimeException Curl error (code 3): <url> malformed Source: vendor\monolog\monolog\src\Monolog\Handler\Curl\Util.php { while ($retries--) { if (curl_exec($ch) === false) { $curlErrno = curl_errno($ch); if (false === in_array($curlErrno, self::$retriableErrorCodes, true) || !$retries) { $curlError = curl_error($ch); if ($closeAfterDone) { curl_close($ch); } throw new

Laravel Logging to Slack Workbook causes “Curl error (code 3): <url> malformed”

北城以北 提交于 2019-12-23 03:31:04
问题 I just set up a webhook in Slack to send logging to from my Laravel app. When the log line executes, this error pops up: RuntimeException Curl error (code 3): <url> malformed Source: vendor\monolog\monolog\src\Monolog\Handler\Curl\Util.php { while ($retries--) { if (curl_exec($ch) === false) { $curlErrno = curl_errno($ch); if (false === in_array($curlErrno, self::$retriableErrorCodes, true) || !$retries) { $curlError = curl_error($ch); if ($closeAfterDone) { curl_close($ch); } throw new

Crashlytics WebHook for Slack is not working

早过忘川 提交于 2019-12-23 01:12:12
问题 I have successfully configured Crashlytics Webhook with Slack. I have also tested it with the Test Message given in Crashlytics console. Test message working fine. But, when I have an actual crash in Crashlytics, it is not getting triggered into the Slack. I don't know where is the issue. What am I doing wrong here? 回答1: Mike from Fabric here. I responded over email, but will make the answer public as well. For this integration, you've set the impact level to 5 which means that only issues

Perl SVN hook with czech characters

时光毁灭记忆、已成空白 提交于 2019-12-22 17:31:10
问题 I downloaded the sample SVN post-commit hook provided by Slack integration. #!/usr/bin/perl use warnings; use strict; use HTTP::Request::Common qw(POST); use HTTP::Status qw(is_client_error); use LWP::UserAgent; use JSON; my $repository = "myrepo"; my $websvn = "websvn.mydomain.com"; my $opt_domain = "myteam.slack.com"; my $opt_token = "mytoken"; my $log = qx|export LC_ALL="cs_CZ.UTF-8"; /usr/bin/svnlook log -r $ARGV[1] $ARGV[0]|; my $log = $log." ".unpack('H*',$log); my $who = `/usr/bin

How to use Slack's OAuth2 with a Java desktop application

眉间皱痕 提交于 2019-12-22 10:39:10
问题 Is there a way to authenticate a java desktop application with Slack using OAuth2? I am trying to follow Slack's guide. I am getting stuck because it says you get the access token inside of the redirect uri of your application. But since the app I am making does not exist inside of the web browser, is there anyway I can do this? Can my java application launch a localhost site that it can communicate with to use as the redirect uri? If so, how? 回答1: Desktop app as internal integration Before

Is a Slack channel id unique across teams?

假装没事ソ 提交于 2019-12-18 19:02:14
问题 Is a Slack channel/group/im/mpim id unique across different teams? In other words, can two teams have channels with the same id? I read the docs, searched on Google and here on SO, but could not get confirmation if channel IDs are unique or not. 回答1: Slack plans to clarify this in documentation soon. While in the present day you'd probably get by just fine assuming IDs are unique across different teams, we strongly recommend scoping all of your storage and retrieval by team ID. Essentially,

How to avoid slack command timeout error?

时光怂恿深爱的人放手 提交于 2019-12-18 12:47:41
问题 I am working with slack command (python code is running behind this), it works fine, but this gives error This slash command experienced a problem: 'Timeout was reached' (error detail provided only to team owning command). How to avoid this ? 回答1: According to the Slack slash command documentation, you need to respond within 3000ms (three seconds). If your command takes longer then you get the Timeout was reached error. Your code obviously won't stop running, but the user won't get any