CLI to help sync users between two slack channels
> node dist/index.js <sourceChannel> <targetChannel>
<sourceChannel>
: The unique id of the slack channel to get a list of users<targetChannel>
: The unique id of the slack channel to invite a list of users to
-
Clone repository
-
Copy
.env.example
to as.env
:> cp .env.example .env
-
Update
SLACK_TOKEN
in the.env
.SLACK_TOKEN={YOUR_SLACK_APP_OAUTH_TOKEN}
-
Run CLI with the options you need.
node dist/index.js C01RJUQRPP0 C01RGBRJ29M
- create slack app
- node slack web-api and pagination
- conversations.members
- Bot permissions needed:
channels:read
- Bot permissions needed:
- conversations.invite
- Bot permissions needed:
channels:manage
- Bot permissions needed: