Slackr
Simple shell command to send or pipe content to slack via webhooks. (To upload snippets or files use: www.github.com/a-sync/slackfu)
Install / Use
/learn @a-sync/SlackrREADME
slackr
Requirements
- bash compatible shell
- sane install of python
- sane install of curl
Installation
- download and unpack the archive
- enter the unpacked directory and make slackr executable
- set your webhook URL in the WEBHOOK_URL variable of slackr
- create a global symbolic link
curl -sL https://github.com/a-sync/slackr/archive/master.tar.gz | tar xz
cd slackr-master && chmod +x slackr
read -p "Enter webhook URL: " WHURL && sed -i "3s|.*|WEBHOOK_URL=\"$WHURL\"|" slackr
sudo ln -s "$(readlink -f slackr)" /usr/local/bin
Usage
Usage: slackr [options] <text>
Options:
-r <channel name|channel ID>
-i <bot icon emoji>
-n <bot name>
-c <good|warning|danger|#hex color>
-a <author name>
-t <title text>
-l <title link URL>
-f <footer text>
-w <webhook URL>
Examples:
slackr some text
slackr -c good -n friendlybot -i :cat: hello
slackr -r general < logfile.txt
ls -la /etc/ | slackr -r D024BE91L -f "$(history 1)"
tail /var/log/syslog | slackr -a "$(id -un) $(hostname -f)"
:warning: Important
@username format as a recipient (-r) is deprecated!
Slack API support was removed on 2018-09-12.
Related Skills
imsg
349.0kiMessage/SMS CLI for listing chats, history, and sending messages via Messages.app.
slack
349.0kUse when you need to control Slack from OpenClaw via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
taskflow-inbox-triage
349.0kname: taskflow-inbox-triage description: Example TaskFlow authoring pattern for inbox triage. Use when messages need different treatment based on intent, with some routes notifying immediately, some w
taskflow
349.0kname: taskflow description: Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layer
