Pipes command line output to Slack
ls -la | slap #general
echo "message from cli" | slap @halil.ibrahimYou need a legacy token which can be issued here.
Then, you need to set an environment variable using this token.
echo "export SLACK_LEGACY_TOKEN=your-token" >> ~/.bash_profile
source ~/.bash_profileFinally, download the script into /usr/local/bin using following command.
wget https://raw.githubusercontent.com/hisener/slap/master/slap -P /usr/local/bin && chmod +x /usr/local/bin/slapSimply remove the script file and remove export statement from your .bash_profile.
