Clone the project
git clone https://github.com/CodeWhiteWeb/Revolt-Spotify-RPC
Go to the project directory
cd Revolt-Spotify-RPC
Install dependencies
npm install
fill the .env
file with required things
Start the server
npm run start
To run this project, you will need to add the following environment variables to your .env
file
spotify_username=Your Spotify Username here
api_key=Your last.fm api key here
user_token=Your Revolt User Token Here
-
create your account - https://last.fm
- Go to Last.fm and log in.
- Hover over your profile image in the top-right.
- Click Settings.
- Click Applications.
- Click Connect, next to Spotify Scrobbling.
- Continue to allow access to your Spotify account.
-
Create an api account https://www.last.fm/api/account/create ( fill fields with random things, it doesn't matter)
window.state.auth.sessions.get(controllers.client.getReadyClient().user._id)
.session.token;
Fill all the required fields in .env
file and run