A CLI tool for Slack statistics
To get Slack token, access here: https://api.slack.com/custom-integrations/legacy-tokens
Install direnv.
$ brew install direnv # macOS
Copy .envrc from .envrc.sample
and set Slack token.
$ cp .envrc.sample .envrc
$ vi .envrc
export SLACK_API_TOKEN=xxxxxxxxxxxxxxxxxxx
$ go run cmd/slacts/main.go slack count "in#general @channel"
result: 12
or
$ make install
go install github.com/crowdworks/slacts/cmd/slacts
$ slacts slack count "in#general @channel"
result: 12
Returns the number of search result. Please refer Guide to search in Slack.
MIT