paulhammond / slackcat Goto Github PK
View Code? Open in Web Editor NEWPost messages to Slack from the command line
License: MIT License
Post messages to Slack from the command line
License: MIT License
in addition to icon_emoji
Slack supports icon_url
I'd like to see icon_url
be supported via the conf file. Best would be if it would just take whatever was in that file, override anything set via the command line options, and then send that to the server. That way you've got support for new any new functionality they add WITHOUT having to update the code (until you want it to be overrideable on the command line.)
Hi all,
I'm trying to setup the conf to send messages as my user.
I got the token from the website, by looking at the request slacks sends.
slackcat
seems to be sending the messages --or at least it does not tell me the error-- but the messages does not appear on slack, so there must be something broken.
Am I doing something wrong?
I want to pass into slackcat a string like
<http://google.com/|Google link>
and see a real link into slack channel. To do this, slackcat have to pass parse=full
as I understand? read more here
But as I see, slackcat has already done it! Mb I should use link_names=1
? Anyone knows?
Hi!
What was the rationale behind 8ce046d? I imagine this change in behaviour would be useful when dealing with streaming output. Was that the intended use case?
I use slackcat
to plumb finite chunks of command output into Slack. So that the lines of command output are not multiplexed with concurrent channel activity from other users, it would be nice to consume and post the entire stdin stream as before. Marking the text as preformated would also improve legibility.
Would you be receptive to such a PR? We could accommodate both use cases with a new --stream
flag.
Is there a reason the default name isn't blank? I tend to give integrations a default name in the hook itself. I'm sure there's reason to use the user@system. Personally, I haven't had a need for it.
P.S. Awesome idea!
I had an issue when attempting to cat a file with an empty line to slackcat. For example if the following is the contents of temp.log:
Hello
World
running cat temp.log | slackcat
will result with
$ cat temp.log | slackcat
2015/01/13 14:18:12 Post failed: Not OK
and only hello printed in slack.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.