Skip to content

A simple , single file RPC for auto updating status on revolt.chat from spotify via last.fm

License

Notifications You must be signed in to change notification settings

CodeWhiteWeb/Revolt-Spotify-RPC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Revolt Spotify RPC

image

Display what you are listening in spotify on Revolt.chat as status

GitHub license GitHub license1 GitHub license GitHub license2 GitHub license31 GitHub license3 GitHub license4

Run Locally

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

.ENV (environment variables)

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

to get last.fm api follow the step

  • create your account - https://last.fm

  • connect you spotify account

  • 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)

to get revolt.chat user token follow the step

  • go to app.revolt.chat (revite) and open console from developer tools ( shortcut keys - f12 or Ctrl + Shift + I)

  • paste the following -

window.state.auth.sessions.get(controllers.client.getReadyClient().user._id)
  .session.token;
  • copy it without ' '

Fill all the required fields in .env file and run

Screenshots

App Screenshot

Author

About

A simple , single file RPC for auto updating status on revolt.chat from spotify via last.fm

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published