- Download the release from our releases page.
- Copy the binary into you
$PATH
-cp ~/Downloads/slack-blaster /usr/local/bin
- Make the binary executable -
chmod +x /usr/local/bin/slack-blaster
Note: You will need to be a Slack admin to get a usable token. If you are not then please contact Alex Bello. Alternatively, you can generate a legacy token. Legacy tokens might go away at some point, but, in the mean time, it removes the reliance on Alex.
In your web browser, go to https://cloud-armory.slack.com
and then navigate to Administration and then Members. Once there you can view the page
source in the browser. You will be looking for the value associated with api_token
.
Use that token as your SLACK_TOKEN
.
Set your SLACK_TOKEN
environment variable:
export SLACK_TOKEN={slack-api-token}
To get the list of all the channels:
slack-blaster channels
To get the list of channels matching a pattern:
slack-blaster channels --pattern {pattern}
To get the list of only shared channels:
slack-blaster channels --shared
- Create a file with a list of channels to send your message to
- Create a Markdown file which contains your message content
- Run slack blaster as specified below
slack-blaster blast --channels-list channels.txt --message-file message.md --for-real
(the --for-real
flag will actually send the message)