Skip to content

h0tw1r3/slackpipe

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

SlackPipe

Simple command line tool to send messages to a slack channel.

Reads standard input and last argument for messages.

usage: slackpipe [--username USERNAME] [--emoji EMOJI] [--channel CHANNEL] [--token TOKEN] MESSAGE

positional arguments:
  message

  options:
    --username USERNAME    Username [default: pipe]
    --emoji EMOJI          Emoji tag [default: :gear:]
    --channel CHANNEL      Channel name or ID [default: #general]
    --token TOKEN          Slack Token [default: ENV['SLACK_TOKEN']]
    --help, -h             display this help and exit
    --version              display version and exit

Pipe input is split by newline and sent as multiple messages

Requirements

  • Go
  • Slack API Token
  • Clever messages to pipe (or not)

Install

$ go get github.com/h0tw1r3/slackpipe

About

$ ./slackpipe -v
SlackPipe version 0.1
Copyright (C) 2016 Jeffrey Clark
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.

This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

About

Simple command line tool to send messages to a slack channel.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages