slack

Perl SVN hook with czech characters

二次信任 提交于 2019-12-06 08:23:37
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/svnlook author -r $ARGV[1] $ARGV[0]`; my $url = "http://${websvn}/revision.php?repname=${repository}&rev=

Crashlytics WebHook for Slack is not working

守給你的承諾、 提交于 2019-12-06 07:27:31
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? 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 that are the most impactful will be mentioned in Slack. If you want to be notified of every new issue, set the

Attach meta data / custom data to slack messages sent through the API

家住魔仙堡 提交于 2019-12-06 06:35:43
问题 I am developing a series of Slack apps for my workspace, and some of them are meant to interact with the content (messages) delivered by the other apps : extracting content IDs that may be referred to by other messages A concrete example : Suppose I have an app A "FindUser" that is capable of giving me the user profile when a slack user types find me@example.com , and it replies in the thread with a formatted view of the user profile I am developing an app B "EditTags", which basically gives

Microsoft bot framework getting the users time zone

China☆狼群 提交于 2019-12-06 06:18:43
问题 I have a use case when my bot needs to send users a message at a specific time of the day. Let's say at 6am every morning. I am using a scheduled azure Webjob to send these messages. The messages would be delivered in Slack and Skype clients. However I might have users in different time zones, which means I need to be able to send the messages at 6am at the users (Slack's or Skype's) time zone. How can I find out within the bot framework of what the end user's time zone is? The Activity

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

点点圈 提交于 2019-12-06 02:29:58
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? Desktop app as internal integration Before we get into more details please note that there is an easy solution if you plan to use your desktop app for

What are some ways to post python pandas dataframes to slack?

坚强是说给别人听的谎言 提交于 2019-12-05 23:56:30
问题 How can I export a pandas dataframe to slack? df.to_json() seems like a potential candidate, coupled with the slack incoming webhook, but then parsing the message to display as a nice markdown/html-ized table isn't obvious to me. Long time listener, first time caller, please go easy on me... 回答1: There is a .to_html() method on DataFrames, so that might work. But if you are just looking to cut and paste, Tabulate is a good choice. From the docs: from tabulate import tabulate df = pd.DataFrame

Slack DM to a user not in `im.list`

匆匆过客 提交于 2019-12-05 07:38:34
I'm implementing a slack ops bot that will notify users of job completion on a build server. It needs to be able to DM users on job completion. I've setup a bot user as per the instructions @ https://api.slack.com/bot-users . To send a DM to a particular user, chat.postMessage takes the first argument (channel) as either a @username or a IM channel's ID as per the documentation @ https://api.slack.com/methods/chat.postMessage#channels . To get the IM channel ID of a user, im.list can be used. But im.list only gives the IM channel IDs of the users the bot has previously interacted with (or the

Slack Event API for Bot Mentions

巧了我就是萌 提交于 2019-12-04 17:32:03
I'm building a Slack bot using a Slack App. I have managed to authorise and am successfully receiving events via the Event API. I'm trying to find out how to listen only for direct mentions of the bot. Therefore it should fire an event when someone messages a public or private channel AND when the bot is directly tagged like @bot Public/private Slack Channel Example: Daniel: Hi there bot (does not trigger) Jeremy: @bot hi there (triggers Event API) Is there a Slack Event that does this? Or is there another way to do this? I don't want to have to hardcode it into my server-side application as

Groovy script fails to call Slack notification parameter from Jenkins DSL job

坚强是说给别人听的谎言 提交于 2019-12-04 16:36:57
I'm attempting to use the Jenkins Job DSL plugin for the first time to create some basic job "templates" before getting into more complex stuff. Jenkins is running on a Windows 2012 server. The Jenkins version is 1.650 and we are using the Job DSL plugin version 1.51. Ideally what I would like is for the seed job to be parameterised so that when it is being run the user can enter four things: the Job DSL script location, the name of the generated job, a Slack channel for failure notifications, and an email address for failure notifications. The first two are fine: I can call the parameters in

How to scale a slack bot to 1000's of teams

旧巷老猫 提交于 2019-12-04 09:19:15
问题 To implement a slack bot, i need to deal with 'Real Time Messaging API' of slack. It is a WebSocket-based API that allows you to receive events from Slack in real time and send messages as user. more info: https://api.slack.com/rtm To create a bot for only one team , i need to open one websocket connection and listen it for events. To make available the slack bot for another team. I need to open a new websocket connection. So, 1 team => 1 websocket connection 2 teams => 2 websocket