Skip to content

Updates your Slack user status from CLI. Your own templates can be managed by editting the settings file. Also has features to append the music information being played on your iTunes etc. | SlackのユーザステータスをCLIから更新するツールです。 設定ファイルを編集して自分専用のテンプレートを管理することができます。 iTunes等で再生中の音楽情報を付加する機能も付いています。

License

Notifications You must be signed in to change notification settings

townewgokgok/slack-status

Repository files navigation

English | 日本語

slack-status

MIT License Powered By: GoReleaser

Updates your Slack user status from CLI. Your own templates can be managed by editting the settings file. Also has features to append the music information being played on your iTunes etc.

Install

manually

Download the binary from the releases page and move it to a directory in your PATH variable.

brew tap townewgokgok/tap
brew install slack-status
go get github.com/townewgokgok/slack-status

Configure your settings

Your settings file will be saved at $HOME/.slack-status.yml.

slack-status edit to edit it like

slack:
  token: xoxp-...

templates:
  home: ':house: Working remotely today'
  lunch: ':fork_and_knife: Having lunch'
  • The emoji at the beginning of the template string will be used as the status icon.
  • Your token can be created at Slack "Legacy tokens" page.

Usage

slack-status can be used in subcommand style like slack-status <command> ....

  • slack-status edit … Opens your settings file in the editor
  • slack-status list … Lists your templates
  • slack-status get … Shows your current status
  • slack-status set [options...] <template ID>... … Updates your status
    • Options

      • --dryrun, -d … just print the composed status text (your status will not be changed)
      • --watch, -w … watch changes (with "itunes" or "lastfm" template)
    • Special template IDs

      • itunes … appends information about the music playing on iTunes
      • lastfm … appends information about the music scrobbled to last.fm

      These IDs can be modified by editting template_id in your settings file.

  • slack-status help [<command>] … Shows a list of commands or help for one command

Examples

$ slack-status set home
🏠 Working remotely today
$ slack-status set lunch
🍴 Having lunch
$ slack-status set lunch home
🍴 Having lunch 🏠 Working remotely today

🍴 will be used as the emoji icon and the rest as the text.

$ slack-status set itunes
🎵 Satellite Young - Break! Break! Tic! Tac! (from "Satellite Young")
$ slack-status set home itunes
🏠 Working remotely today 🎵 Satellite Young - Break! Break! Tic! Tac! (from "Satellite Young")
$ slack-status set -w home itunes
[10:25:39] 🏠 Working remotely today 🎵 Satellite Young - Break! Break! Tic! Tac! (from "Satellite Young")
[10:30:16] 🏠 Working remotely today 🎵 Satellite Young - Geeky Boyfriend (from "Satellite Young")
[10:33:51] 🏠 Working remotely today 🎵 Satellite Young - AI Threnody (from "Satellite Young")

bash_complete support

Move bash_complete included in the distribution to somewhere and source it in your .bashrc.

About

Updates your Slack user status from CLI. Your own templates can be managed by editting the settings file. Also has features to append the music information being played on your iTunes etc. | SlackのユーザステータスをCLIから更新するツールです。 設定ファイルを編集して自分専用のテンプレートを管理することができます。 iTunes等で再生中の音楽情報を付加する機能も付いています。

Resources

License

Stars

Watchers

Forks

Packages

No packages published