Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

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

README.md

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

Releases

No releases published

Packages

No packages published

Languages