Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

tsroten/slackecho

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slackecho

This project is no longer maintained.

Slackecho is a simple commandline utility to post messages to Slack.

It is forked from, and designed to complement, Slackcat.

Configuration

If you already use Slackcat, you're already configured. If not, download Slackcat and follow the instructions. Your new config file will work for Slackcat and Slackecho.

For configuring multiple teams and default channels, see Slackcat's Configuration Guide.

Usage

Echo a string as a message:

$ slackecho --channel general Good morning!
*slackecho* posted 1 message lines to general

Pipe command output as a message:

$ echo -e "hi\nthere" | slackecho --channel general
*slackecho* posted 2 message lines to general

Post a message as preformatted text:

$ echo -e "print('Hello world!')" | slackecho --pre --channel general
*slackecho* posted 1 message lines to general

Stream input continously as preformatted text:

$ tail -F -n0 /path/to/log | slackecho --channel general --stream --pre
*slackecho* posted 5 message lines to general
*slackecho* posted 2 message lines to general
...

Options

Option Description
--tee, -t Print stdin to screen before posting
--stream, -s Stream messages to Slack continuously
--pre, -p Write messages as preformatted text
--noop Skip posting message to Slack. Useful for testing
--channel, -c Slack channel, group, or user to post to

About

CLI utility to post messages to slack

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 86.7%
  • Ruby 7.8%
  • Makefile 5.5%