https://github.com/inkel/slacker
Slack CLI to update status and presence
https://github.com/inkel/slacker
cli go golang golang-application slack
Last synced: 3 months ago
JSON representation
Slack CLI to update status and presence
- Host: GitHub
- URL: https://github.com/inkel/slacker
- Owner: inkel
- License: mit
- Created: 2017-08-04T16:21:35.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-21T15:14:40.000Z (over 5 years ago)
- Last Synced: 2025-04-23T22:03:42.671Z (3 months ago)
- Topics: cli, go, golang, golang-application, slack
- Language: Go
- Size: 13.7 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# slacker - Slack CLI to update status and presence
## Installation and setup
```
go install github.com/inkel/slacker
```Create a configuration file (`~/.slack` by default) with the following format:
```
team-name-1 xoxp-0123456789-0987654321-201707160255-01a23b45c67d89ef0ed9cb8a01234567
team-name-2 xoxp-8623849939-8648418000-201605041419-cb8a0123456767d89ef0ed901a23b45c
```You can create the tokens here with the [Legacy token generator](https://api.slack.com/custom-integrations/legacy-tokens).
## Usage
```
$ slacker -h
Usage of slacker:
-away
Set yourself away
-clear
Clears your away and custom status
-config string
Which config file to use (default "/Users/inkel/.slack")
-d Enable debug mode
-emoji string
Set status emoji
-expires-at string
Set an absolute expiration
-expires-in duration
Set a relative expiration (e.g. 1h15m30s)
-online
Set yourself online
-text string
Set status text
```You can pass team names as additional arguments and then `slacker` will operate only in those teams, otherwise it will operate on all the teams in your configuration file.
## License
See [LICENSE](LICENSE).