- Go to https://api.slack.com/custom-integrations/legacy-tokens and generate a legacy token
-
$ git clone https://github.com/jkazan/jslack.git
- Open
jslack.sh
in your editor - Change the variable
token
to contain the legacy token you generated. - Login to Slack in your browser. Click on the channels you would like to get notifications from and find the Channel ID in the url, e.g. in https://my-slack.slack.com/messages/C2GNFHN07/ the Channel ID is
C2GNFHN07
. Now copy this Channel ID into the array in the variablechannels
injslack.sh
- Repeat 4. for private conversations, with the exception that these Conversations IDs should be in the variable
conversations
. - Depending on your OS distribution, the notification function may differ. If needed, google your OS + bash notification and you will find the appropriate function.
$ bash <my path>/jslack/jslack.sh &