Code Monkey home page Code Monkey logo

discord-mpris-status's Introduction

Discord-Music-Status

A Program to display your currently played Music as your Discord Status

The status will not show up for you, as Discord does not display it on your own client when you edit it. I cannot fix this. Your friends will be able to see it however, or you can log into another account and check.

Due to Snip being Windows only, I can only provide support for this program on Windows, and furthermore it will only actually work on Windows unless you pray to the Linux gods or Steve Jobs or smth, Although there is rudemetary crossplatform work for linux

Sidebar

Profile

The program will work with:

  • Spotify
  • iTunes
  • Winamp
  • foobar2000
  • VLC
  • Google Play Music Desktop Player
  • Quod Libet

Requirements:

Install:

  1. Install requirements above
  2. Start up snip, this must be done at least once before starting the script, and snip must be running while you use it!
  3. Find your Discord token See below
  4. Run run.py to generate a config file
  5. Configure the file with your token and path to snip.txt Neither should have quotation marks
  6. Start run.py

Example Config

[Config]
token = mfa.a4g2Wazb... 
snip = D:\DiNitride\Snip\Snip.txt

Your token will only be prefixed with mfa if you have 2 factor auth enabled

Finding Login Token

  1. Open Discord
  2. Press Ctrl+Shift+i
  3. Click "Application" tab
  4. Expand Storage > Local Storage > https://discordapp.com/
  5. Find "token" under "key"
  6. Copy the text in quotes on the same row, DO NOT KEEP THE QUOTES

Installing Logbook and Discord via Pip

Open command prompt, and type pip install logbook and pip install discord.py This should install both modules

If for some reason it doesn't, read here

FAQ and Troubleshooting

This program has been tested and is 100% functional, providing the enviroments it is run in are correct.

Ensure Discord.py is updated to the latest version

A breaking change may have happened to the Discord API, which is out of my control, and you will need to update your installation. In the event that the problem is not fixed by the library, and I need to update my code, please open an issue in the issues tab.

pip install discord.py --upgrade

Make sure your config is set up correctly

Study the example config above and make sure that your paths are pointing to the correct file snip.exe IS NOT the correct file, snip.txt is, this will cause an error

Do not add me as a friend on Discord and DM me for help. Github has an issues feature which works perfectly well, allows me to keep track of problems better, and in turn allows others to see the solution when we get to it.

Logging out

To log out, send "m.quit" anywhere on Discord and the script should log you out properly

Lots of love, DiNitride xoxoxo

discord-mpris-status's People

Contributors

dinitride avatar miawgogo avatar

Stargazers

 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.