rslack

select

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

    ```bash $ export RSLACK_TOKEN=your-token

    or

    $ mv .token.keep .token ```

    If both are set, use the value of .token

Usage

bash $ cargo run

If you want to run on Docker, exec the following command. bash $ docker build -t rslack . $ docker run --rm -e RSLACK_TOKEN=your-token -ti rslack

Test

bash $ cargo test