slack-multiple-channel-inviter

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 5 Imported by: 0

README

slack-multiple-channel-inviter

This golang code invites multiple people to multiple channels.

It uses the https://github.com/slack-go/slack library.

You'll need to create a Slack app first, with the following permissions:

channels:join
channels:manage
channels:read
groups:read
groups:write
users:read

Capture the Bot User OAuth Token from https://api.slack.com/apps/ (choose your app, click on OAuth & Permissions, Bot User OAuth Token).

Prior to running this script, export the following environment variables:

# The Bot User OAuth Toekn
export SLACK_TOKEN=

# Comma separated user names to invite
export SLACK_CHANNEL_USERS=

# Comma separated channel names to invite the SLACK_CHANNEL_USER to
export SLACK_CHANNELS=

Example:

go build
export SLACK_TOKEN=xoxb-...
export SLACK_CHANNEL_USERS=alice,bob,charlie,dawn
export SLACK_CHANNELS=random,memes,sales
./slack-channel-inviter

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL