Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dpritchett/slack-post
- Owner: dpritchett
- Created: 2019-06-12T19:38:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-12T19:40:41.000Z (over 5 years ago)
- Last Synced: 2024-04-14T20:36:49.625Z (10 months ago)
- Topics: golang, slack, slack-api
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`