Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nasus20202/spotifydiscordactivity
Upgrade your Discord Spotify Connection - show your current playing track!
https://github.com/nasus20202/spotifydiscordactivity
discord spotify
Last synced: 3 days ago
JSON representation
Upgrade your Discord Spotify Connection - show your current playing track!
- Host: GitHub
- URL: https://github.com/nasus20202/spotifydiscordactivity
- Owner: Nasus20202
- Created: 2021-12-21T07:52:12.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-28T20:35:31.000Z (10 months ago)
- Last Synced: 2024-03-28T21:40:15.506Z (10 months ago)
- Topics: discord, spotify
- Language: Python
- Homepage:
- Size: 182 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spotify Discord Activity
Give your Discord Spotify Activty a new, fresh look!
Replace "Listening to Spotify" with a cool artist and track name.
Life is good, but it can better!This is the vanilla look:
![vanilla](https://github.com/Nasus20202/SpotifyDiscordActivity/blob/main/img/vanilla.png)This is the upgraded, fresh look:
![upgraded0](https://github.com/Nasus20202/SpotifyDiscordActivity/blob/main/img/upgraded0.png)
![upgraded1](https://github.com/Nasus20202/SpotifyDiscordActivity/blob/main/img/upgraded1.png)Works best with https://github.com/Nasus20202/SpotiTrackForDiscord
![demo](https://github.com/Nasus20202/SpotifyDiscordActivity/blob/main/img/demo.gif)
## How to use it?
1. You will need a Spotify App. You can register one here: https://developer.spotify.com/dashboard/.
If you are using development mode, you will have to add your account in "Users and access" tab.
2. Create a .env file in ./TokenGenrator. It should look like this:
```
CLIENT_ID=YOUR_APP_CLIENT_ID
CLIENT_SECRET=YOUR_APP_CLIENT_SECRET
REDIRECT_URI=http://localhost:8888/callback
```
Your Client ID and Secret can be accessed at your devloper dashboard.
3. Now start the Node.js server
```
cd ./TokenGenerator
node ./app.js
```
4. You also need your Discord user token. Here is how to obtain it: https://pcstrike.com/how-to-get-discord-token/
5. Now create and .env file in project main folder. It should look like this:
```
TOKEN=YOUR_DISCORD_TOKEN
SPOTIFY_REFRESH_TOKEN=SPOTIFY_REFRESH_TOKEN
TOKEN_GENERATOR_SERVER=http://localhost:8888/refresh_token
```
6. Go to http://localhost:8888/ and log in to Spotify. Now you should receive your Spotify Refresh Token. Copy it to the .env file.
7. Start the Python script
```
python ./main.py
```### Required libraries
Python:
- python-dotenv
- nest-asyncio
```
pip install python-dotenv
pip install nest-asyncio
```Node:
- express
- request
- cors
- cookie-parser
- query-stringNode.js packages should be installed automatically. If not, install them with npm. (npm install *package name*)