https://github.com/dzove855/slackpush
A little Perl/Slack Library
https://github.com/dzove855/slackpush
perl slack
Last synced: about 1 month ago
JSON representation
A little Perl/Slack Library
- Host: GitHub
- URL: https://github.com/dzove855/slackpush
- Owner: dzove855
- License: gpl-3.0
- Created: 2017-09-25T22:44:06.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-25T20:26:43.000Z (over 8 years ago)
- Last Synced: 2025-04-09T08:36:33.670Z (about 1 year ago)
- Topics: perl, slack
- Language: Perl
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# slackpush
Slackpush is a simple Perl Cli Project to push and Get data from Slack
This Script is inspired from : https://github.com/rlister/slackcat
### Installation
For using this little Script you should be sure to have the following Package installed:
- Getoprt::Long
- WWW::Curl
- WWW::Mechanize
- Config::INI
- JSON
You should mv the libs in some of the following perl library Path:
perl -e "print qq(@INC)"
Now after all this you should generate a Slack Api token and set it up with:
slackpush.pl -t 'TOKEN'
### Examples
#### Upload File
```
slackpush.pl --upload="FILE" --channel="#general"
```
#### Download
```
slackpush.pl --download="FILEID" --filepath="/tmp"
```
#### Send Message
```
slackpush.pl --message="Hello" --channel="#general"
```
Send Message as a bot:
```
slackpush.pl --message="Hello i'm a bot" --username="slackpush"
```
Send Message from stdin:
```
echo "hello" | slackpush.pl --channel="#general" --stdin
```