shaunaa126 / slack-user-sync

Sync users between two slack channels

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sync Slack Users between Two Channels

CLI to help sync users between two slack channels

CLI

Usage

> node dist/index.js <sourceChannel> <targetChannel>

Parameters

  • <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

How to use this repository

  1. Clone repository

  2. Copy .env.example to as .env: > cp .env.example .env

  3. Update SLACK_TOKEN in the .env.

    SLACK_TOKEN={YOUR_SLACK_APP_OAUTH_TOKEN}
    
  4. Run CLI with the options you need.

    node dist/index.js C01RJUQRPP0 C01RGBRJ29M

Slack API Calls and Permissions

About

Sync users between two slack channels


Languages

Language:JavaScript 99.3%Language:Shell 0.7%