Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.
/ slackutil Public archive

A little CLI to quickly join, leave, (un-)star, (un-)mute many Slack channels

License

Notifications You must be signed in to change notification settings

giantswarm/slackutil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This tool no longer does it's job, as Slack has modified their API.

Repo image

Docker Repository on Quay

Slack Mass Join/Leave/Star/Mute tool

This little CLI helps you to join, leave, add/remove stars from/to a bunch of channels based on regex patterns.

Usage

Before you can start, set up the SLACK_TOKEN environment variable with a valid Slack token as value and create an alias slackutil as you can see below:

export SLACK_TOKEN=<mytoken>
alias slackutil="docker run --rm -ti -e SLACK_TOKEN=${SLACK_TOKEN} quay.io/giantswarm/slackutil"

Joining channels

To join all channels available to you:

slackutil join

To join all channels with names starting with ux-:

slackutil join --include "ux-.*"

To join all channels with names matching ux-.*, but not matching ux-noise:

slackutil join --include "ux-.*" --exclude "ux-noise"

You can use as many --include and --exclude patterns as you want to.

Pro tip: Test your patterns as described below before actually joining channels.

Leaving channels

The leave command works the same way as the join command.

To leave all channels containing jokes in their name, except for the one named actually-funny-jokes:

slackutil leave --include ".*jokes.*" --exclude "actually-funny-jokes"

Adding stars to/from channels

slackutil star --include "cool-.*"
slackutil unstar --include "uncool-.*"

Muting/unmuting channels

To mute all support channels:

slackutil mute --include "support-.*"

To unmute all support channels:

slackutil unmute --include "support-.*"

Testing your patterns

To just test your include and exclude patterns, use list instead:

slackutil list --include "a.*" --exclude "abc.*"

This way, the matching channel names will be printed. Nothing else.

About

A little CLI to quickly join, leave, (un-)star, (un-)mute many Slack channels

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published