https://github.com/crowdworks/slacts
A CLI tool for Slack statistics
https://github.com/crowdworks/slacts
cli golang slack slack-statistics
Last synced: 5 months ago
JSON representation
A CLI tool for Slack statistics
- Host: GitHub
- URL: https://github.com/crowdworks/slacts
- Owner: crowdworks
- License: mit
- Created: 2018-11-13T02:41:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-10-02T05:00:54.000Z (9 months ago)
- Last Synced: 2025-10-02T05:35:49.868Z (9 months ago)
- Topics: cli, golang, slack, slack-statistics
- Language: Go
- Size: 122 KB
- Stars: 1
- Watchers: 9
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# slacts
[](https://godoc.org/github.com/crowdworks/slacts)
[](https://circleci.com/gh/crowdworks/slacts)
[](https://goreportcard.com/report/github.com/crowdworks/slacts)
A CLI tool for Slack statistics
## Getting Started
### Prerequisites
#### Generate Slack Token
To get Slack token, access here:
https://api.slack.com/custom-integrations/legacy-tokens
#### Set Slack token
Install [direnv](https://direnv.net/).
```bash
$ brew install direnv # macOS
```
Copy .envrc from `.envrc.sample` and set Slack token.
```bash
$ cp .envrc.sample .envrc
$ vi .envrc
export SLACK_API_TOKEN=xxxxxxxxxxxxxxxxxxx
```
### Run
```bash
$ go run cmd/slacts/main.go slack count "in#general @channel"
result: 12
```
or
```bash
$ make install
go install github.com/crowdworks/slacts/cmd/slacts
$ slacts slack count "in#general @channel"
result: 12
```
## Synopsis
### `slacts slack count `
Returns the number of search result.
Please refer [Guide to search in Slack](https://get.slack.help/hc/en-us/articles/202528808-Guide-to-search-in-Slack-).
## License
MIT