Giter Site home page Giter Site logo

codewhiteweb / revolt-spotify-rpc Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 16.55 MB

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

License: MIT License

JavaScript 96.55% Shell 3.45%
revolt-api revolt-bot revolt-chat revoltjs rpc spotify-rpc revolt-rpc

revolt-spotify-rpc's Introduction

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

revolt-spotify-rpc's People

Contributors

codewhiteweb avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

zrsadek

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.