Coder Social home page Coder Social logo

matrixfy's Introduction

Matrixfy

A simple bot to control your spotify account from matrix.

This is a work in progress, and is not ready for production use. Feel free to contribute! :)

Build

  1. Checkout the repository
  2. Build via ./gradlew build

Deploy

Before deplying you need to build the project

  1. Create a matrix account for the bot on your favourite homeserver.
  2. Copy one of the build/distributions/* files to your server, then unzip/untar the file.
  3. Run the bin/ script. The software will create a config.json file in the same directory and exit
  4. Create a spotify app via the spotify developer hub and get the client id and secret.
  5. Add spotifyClientId and spotifyClientSecret to the config.json file
  6. Run the bin/ script again
  7. The server will print a URL to the console, open it in your browser and login with the matrix account you first created for the bot.
  8. Copy the redirect url and paste it into the console
  9. Enjoy! :)

Interact

The bot still doesn't support joining rooms.

For now, you'll need to first log in with the same account of the bot on a matrix client and join the desired room.

Then, you can send commands to the bot via any account that is in the room.

Command Description
!login Prints the login url
!search <query> Searches for a song
!skip Skips the current song
!playing Prints the currently playing song
<spotify uri> Plays a song

Credits

This project would not be possible without the help of:

matrixfy's People

Contributors

dependabot[bot] avatar vaiton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.