Go to file
Tyrel Souza dd3d002cc8
README
2017-06-22 11:26:25 -04:00
README.rst README 2017-06-22 11:26:25 -04:00
lastslack.py Init 2017-06-22 11:20:26 -04:00
requirements.txt Init 2017-06-22 11:20:26 -04:00
run.sh remove my own paths 2017-06-22 11:21:30 -04:00

README.rst

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.