Combines Spotify and Slack Api to update your Slack status with your current playing song on Spotify.
Create an app on Slack: https://api.slack.com/apps
Create an app on Spotify: https://developer.spotify.com/dashboard/applications
Add the valid redirect uris:
Slack: https://localhost:5001/slack-callback
Spotify: https://localhost:5001/spotify-callback
Update app settings to include your client ids and secrets, you can modify the appsettings.json, update user secrets, or set environment variables.
"Slack": {
"ClientId": "<Insert Slack Client Id>",
"ClientSecret": "<Insert Slack Client Secret>"
},
"Spotify": {
"ClientId": "<Insert Spotify Client Id>",
"ClientSecret": "<Insert Spotify Client Secret>"
}I've included a docker-compose file to create a SqlServer locally on port 5433. Start the instance by docker-compose up. If you wish to use your own database you must update the connection string in the app settings.
Migrations are automatic, and it will generate the users table.
"ConnectionStrings": {
"DefaultConnection": "Server=localhost,5433;Database=SpotifySlackListener;User Id=sa;Password=Pass@word"
},Website is bound to http port 5000 and https port 5001 for development, port 80/443 for production. https://localhost:5001/