Skip to content

hawx/mpd-slack-status

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

mpd-slack-status

Change your Slack status to the currenly playing track in MPD.

getting started...

This doesn't integrate as an official API user so is slightly more annoying to setup.

The easiest way to grab the data needed is to open the team chat with the web client and open a JS console. Then grab the following,

TS.model.api_token
// this is for --api-token

TS.model.api_url
// this needs the site name prepending, then pass to --api-url
// usually just /api/ so you need to pass https://whatever-team.slack.com/api/

TS.boot_data.version_uid
// this is for --version-uid

Then you should be able to run it like so,

$ go get hawx.me/code/mpd-slack-status
$ mpd-slack-status \
     --api-token 'xoxs-something-something' \
     --api-url 'https://my-team.slack.com/api/' \
     --version-uid 'aebcaaeaabebebabcba' \
     --default-emoji ":question:" \
     --default-text "I'm doing something"

I have no idea how long these tokens last for, yet.

About

Update your slack status to the current song playing in mpd

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages