This commit is contained in:
Tyrel Souza 2017-06-22 11:26:25 -04:00
parent bf83b4e235
commit dd3d002cc8
No known key found for this signature in database
GPG Key ID: 2EECB5087209E6A5

27
README.rst Normal file
View File

@ -0,0 +1,27 @@
INSTALLATION
============
You need Python.
You need to run
``pip install -r requirements.txt``
You either need to install an app that has the following permissions on slack:
``users.profile:read``
``users.profile.write``
Then get the OAuth token (form ``xoxp-xxxx``) and put it in the proper environment variable in ``run.sh``
Or find the already existing app, visit ``https://api.slack.com/apps/<appid>/oauth``
and get the oauth token there.
Running
-------
If you run the script once, it will try to authenticate your lastfm account with a web browser.
Then fill in the proper Env keys in run.sh
after that with the lastfm key, secret, username, and at least one (space separated) slack oauth token, you can run
./run.sh and it will update your status with the currently playing song if one is being scrobbled.