Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dpritchett/slack-post

Post messages to a slack channel using a slack API token
https://github.com/dpritchett/slack-post

golang slack slack-api

Last synced: 4 days ago
JSON representation

Post messages to a slack channel using a slack API token

Awesome Lists containing this project

README

        

# slack-post

Post messages from ARGV or STDIN to a slack channel

## Usage

Set two environment variables first:
```sh
export SLACK_POSTER_API_TOKEN=redacted
export SLACK_POSTER_DESTINATION="#bot-tests"
```

- Post from STDIN: `echo hi mom | slack-post`
- Post from ARGV: `slack-post hi mom`