slack-blaster

Install

  1. Download the release from our releases page.
  2. Copy the binary into you $PATH - cp ~/Downloads/slack-blaster /usr/local/bin
  3. Make the binary executable - chmod +x /usr/local/bin/slack-blaster

Configure Slack Token

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}

Getting List of Channels

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

Sending a message to channels

  1. Create a file with a list of channels to send your message to
  2. Create a Markdown file which contains your message content
  3. 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)