https://github.com/ryosukecla/slack-spotify-integration
https://github.com/ryosukecla/slack-spotify-integration
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ryosukecla/slack-spotify-integration
- Owner: RyosukeCla
- License: mit
- Created: 2020-04-01T10:12:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-25T11:37:51.000Z (about 4 years ago)
- Last Synced: 2025-05-26T04:10:54.210Z (about 1 year ago)
- Language: JavaScript
- Size: 101 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# slack-spotify-integration

## setup
1. register spotify developer
2. create spotify app
3. set callback url to http://localhost:8000
4. remember Client ID and Client Secret of spotify app
5. generate and remember slack legacy token (see https://api.slack.com/legacy/custom-integrations/legacy-tokens)
## start
```bash
$ npm i
$ SLACK_LEGACY_TOKEN=<...> \
SPOTIFY_CLIENT_ID=<...> \
SPOTIFY_CLIENT_SECRET=<...> \
npm start
```
## environments
- SLACK_LEGACY_TOKEN: (required) slack legacy token
- SPOTIFY_CLIENT_ID: (required) spotify app client id
- SPOTIFY_CLIENT_SECRET: (required) spotify app client secret
- SLACK_PLAYING_STATUS_EMOJI: (optional, default `:headphones:`) status emoji when playing track
- HOST: (optional, default `localhost`) callback url host for spotify authentication
- PORT: (optional, default `8000`) callback url port for spotify authentication