12 releases

new 0.2.8 Mar 26, 2023
0.2.7 Jan 22, 2023
0.2.4 Sep 15, 2022
0.2.1 Jul 15, 2022
0.1.3 Nov 23, 2021

#1922 in Command line utilities

41 downloads per month

MIT license

59KB
548 lines

rslack

select channel

Setting

  1. Create new app

  2. Create OAuth Token OAuth & Permissions

    1. User Token Scopes
      • channels:read
      • chat:write
    2. OAuth Tokens & Redirect URLs
      1. Install App to Workspace
      2. Tokens for Your Workspace -> copy OAuth Access Token
  3. Setting OAuth Token

    export RSLACK_TOKEN=your-token
    
    # or
    
    mv .token.keep .token
    

    If both are set, use the value of .token

Usage

brew install kohbis/rslack/rslack

If you want by local build.

cargo run

If you want to run on Docker, exec the following command.

docker build -t rslack -f docker/Dockerfile .
docker run --rm -e RSLACK_TOKEN=your-token -ti rslack

Test

cargo test

Dependencies

~8–15MB
~301K SLoC