https://github.com/a-sync/slackfu
Simple shell command to upload files and create snippets through the slack web API
https://github.com/a-sync/slackfu
shell shell-script slack slack-api slack-bot slack-files slack-web-api slackbot token-authetication
Last synced: 3 months ago
JSON representation
Simple shell command to upload files and create snippets through the slack web API
- Host: GitHub
- URL: https://github.com/a-sync/slackfu
- Owner: a-sync
- License: mit
- Created: 2018-01-06T21:12:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-07T14:00:12.000Z (over 8 years ago)
- Last Synced: 2025-08-15T17:46:44.091Z (10 months ago)
- Topics: shell, shell-script, slack, slack-api, slack-bot, slack-files, slack-web-api, slackbot, token-authetication
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# slackfu
## Requirements
* bash compatible shell
* sane install of curl
## Installation
1. download and unpack the [archive](https://github.com/a-sync/slackfu/archive/master.tar.gz)
2. enter the unpacked directory and make [slackfu](slackfu) executable
3. set [your authentication token](https://github.com/a-sync/slackfu/wiki#slack-api-tokens) in the SLACK_AUTH_TOKEN variable of [slackfu](slackfu#L3)
4. create a global symbolic link
```bash
curl -sL https://github.com/a-sync/slackfu/archive/master.tar.gz | tar xz
cd slackfu-master && chmod +x slackfu
read -p "Enter authentication token: " SLACKAT && sed -i "3s|.*|SLACK_AUTH_TOKEN=\"$SLACKAT\"|" slackfu
sudo ln -s "$(readlink -f slackfu)" /usr/local/bin
```
## Usage
```
Usage: slackfu [options]
Options:
-r
-n
-t
-f
-T
Examples:
slackfu somefile.jpg
slackfu -r general -n "filename.log" somefile.txt
ps | slackfu -r C8P15L0TV -t "$(id -un) $(hostname -f)"
ls -la /etc/ | slackfu -r D024BE91L,random -f "$(history 1)"
```