{"id":14988688,"url":"https://github.com/cheshire137/spotify-slack-status","last_synced_at":"2025-04-12T00:22:20.309Z","repository":{"id":66817537,"uuid":"88310182","full_name":"cheshire137/spotify-slack-status","owner":"cheshire137","description":"Update your Slack status based on the track currently playing in Spotify.","archived":false,"fork":false,"pushed_at":"2017-10-24T22:55:06.000Z","size":492,"stargazers_count":31,"open_issues_count":2,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-08T02:35:18.497Z","etag":null,"topics":["bulma-css","sinatra-applications","slack-api","slack-app","slack-commands","spotify-api"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cheshire137.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-14T23:21:18.000Z","updated_at":"2023-12-12T22:15:14.000Z","dependencies_parsed_at":"2023-08-01T03:46:45.394Z","dependency_job_id":null,"html_url":"https://github.com/cheshire137/spotify-slack-status","commit_stats":{"total_commits":96,"total_committers":2,"mean_commits":48.0,"dds":0.01041666666666663,"last_synced_commit":"d61a96cb07ef05437f2da9bdac56670e56724dfc"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheshire137%2Fspotify-slack-status","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheshire137%2Fspotify-slack-status/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheshire137%2Fspotify-slack-status/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheshire137%2Fspotify-slack-status/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cheshire137","download_url":"https://codeload.github.com/cheshire137/spotify-slack-status/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248498200,"owners_count":21114057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bulma-css","sinatra-applications","slack-api","slack-app","slack-commands","spotify-api"],"created_at":"2024-09-24T14:17:04.268Z","updated_at":"2025-04-12T00:22:20.284Z","avatar_url":"https://github.com/cheshire137.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spotify Slack Status\n\nUpdate your Slack status based on the track currently playing in Spotify.\n\n[![Add to Slack](https://platform.slack-edge.com/img/add_to_slack.png)](https://slack.com/oauth/authorize?\u0026client_id=17070537907.169811790293\u0026scope=users.profile:write,commands)\n\nYou can update your status via the `/spotify-status` command in Slack once\nyou've added the app to your team's Slack.\n\n![Screenshot from Slack 1](https://raw.githubusercontent.com/cheshire137/spotify-slack-status/master/screenshot1.png)\n\n![Screenshot from Slack 2](https://raw.githubusercontent.com/cheshire137/spotify-slack-status/master/screenshot2.png)\n\n## How to Develop\n\nYou will need PostgreSQL, Bundler, RubyGems, and Ruby installed.\n\nCreate a [Spotify app](https://developer.spotify.com/my-applications/#!/).\nAdd `http://localhost:9292/callback/spotify` as a redirect URI.\n\nCreate a [Heroku app](https://dashboard.heroku.com/apps).\n\n```bash\nbundle install\ncp dotenv.sample .env\n```\n\nCreate a [Slack app](https://api.slack.com/apps). Add\n`http://localhost:9292/callback/slack` as a redirect URI. Set up a\n\"Slash Command\" on your app with the name `/spotify-status` and\nthe request URL `https://your-heroku-app.herokuapp.com/command/spotify-status`.\nWhen you add the slash command to your Slack app, a verification token\nwill appear under \"Basic Information\". Set this token in your\n.env as `SLACK_VERIFICATION_TOKEN`.\n\nEdit .env to set your Spotify and Slack client IDs and secrets. Run\n`rake generate:secret` and put the output of that as the `SESSION_SECRET`\nvalue in your `.env`.\n\n```bash\ncreatedb spotify_slack_status_dev\nrake db:migrate\nrackup\nopen http://localhost:9292/\n```\n\n## Deploying to Heroku\n\nSet `https://your-heroku-app.herokuapp.com/callback/spotify`\nas a redirect URI on your Spotify app. Set\n`https://your-heroku-app.herokuapp.com/callback/slack` as a redirect\nURI on your Slack app. You want the Heroku URL as the first\nredirect URL.\n\n```bash\nheroku git:remote -a your-heroku-app\ngit push heroku master\nheroku run rake db:migrate\nheroku restart\n```\n\nSet environment variables on your Heroku app via:\n\n```bash\nheroku config:set SPOTIFY_CLIENT_ID=\nheroku config:set SPOTIFY_CLIENT_SECRET=\nheroku config:set SLACK_CLIENT_ID=\nheroku config:set SLACK_CLIENT_SECRET=\nheroku config:set SLACK_VERIFICATION_TOKEN=\nheroku config:set SESSION_SECRET=\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheshire137%2Fspotify-slack-status","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheshire137%2Fspotify-slack-status","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheshire137%2Fspotify-slack-status/lists"}