Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 2 months ago
JSON representation

Slack CLI to update status and presence

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).