slackcat icon indicating copy to clipboard operation
slackcat copied to clipboard

Dealing with empty lines in a file

Open funkymonkeymonk opened this issue 10 years ago • 2 comments

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.

funkymonkeymonk avatar Jan 13 '15 19:01 funkymonkeymonk

same problem here

wanderr avatar Jan 22 '16 23:01 wanderr

@funkymonkeymonk @wanderr this projects looks abandoned, it doesn't get any updates or replies for years now.

Sorry about hijacking the issue but I've implemented a package that we use to post messages as Slackbot, this feature works just fine there, please take a look at: https://github.com/monde-sistemas/slackbot/tree/master/slackbot-console

fabioxgn avatar Jan 23 '16 14:01 fabioxgn