#oauth #slack

bin+lib rslack

cli for posting slack message

18 releases

0.5.0 Sep 14, 2024
0.4.3 Feb 25, 2024
0.4.0 Jan 3, 2024
0.3.3 Nov 3, 2023
0.1.3 Nov 23, 2021

#765 in Command line utilities

Download history 7/week @ 2024-06-29 117/week @ 2024-07-06 117/week @ 2024-07-27 195/week @ 2024-09-14 30/week @ 2024-09-21 17/week @ 2024-09-28 1/week @ 2024-10-05

53 downloads per month

MIT license

65KB
694 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
    

Usage

# Install
brew install kohbis/rslack/rslack

# Configuration
# If both are set, use the value of `.rslack
export RSLACK_TOKEN=your-token
# or
echo "RSLACK_TOKEN=your-token" > ${HOME}/.rslack

rslack

Local Build & Run

# Configuration
# and
cargo run --release

Test

cargo test

Dependencies

~8–19MB
~272K SLoC