Welcome to music-slack-status! This groovy project syncs your current Spotify jam with your Slack status, so your colleagues always know what tunes you're vibing to. 🎧
Make sure you have the following installed:
- Python 3.11+
- Poetry for dependency management
-
Clone the repo:
git clone https://github.com/yourusername/music-slack-status.git cd music-slack-status
-
Install dependencies:
poetry install
-
Set up your environment variables:
Copy the
.env.example
to.env
and fill in your credentials:cp .env.example .env
Edit the .env file with your favorite editor and add your Slack and Spotify credentials:
SLACK_USER_TOKEN=xoxp-your-slack-token SLACK_USER_ID=your-slack-user-id SPOTIPY_CLIENT_ID=your-spotify-client-id SPOTIPY_CLIENT_SECRET=your-spotify-client-secret SPOTIPY_REDIRECT_URI=https://localhost:8888/callback
-
Fire up the script:
poetry run python main.py
Or, if you prefer to specify the Slack user ID directly:
poetry run python main.py your-slack-user-id
-
Authenticate with Spotify
-
Watch the magic happen!!
Feel free to fork this project and submit pull requests. Let's make this project even more awesome together! 🤘
This project is licensed under the MIT License. See the LICENSE file for details.