Giter Site home page Giter Site logo

julianschiavo / simplepresence Goto Github PK

View Code? Open in Web Editor NEW
194.0 13.0 36.0 46.59 MB

An easy and simple way to set your Discord Rich Presence Status through RPC (no token required)

License: GNU General Public License v2.0

HTML 8.09% JavaScript 80.79% CSS 11.13%
discord wiki hacktoberfest hacktoberfest2020

simplepresence's Introduction


Discord Twitter

Note

Support for the latest Discord versions may not be perfect and is still being worked on!

SimplePresence

SimplePresence is an Electron app for macOS, Windows, and Linux that allows users to easily set their Discord Rich Presence Status. It has a config for default strings, which can then be changed through the app at any time.

Example

Main

SimplePresence's main/normal usage is for a custom rich presence. It supports images, captions, timestamps, and regular text. Start off by following the setup guide.

Services

SimplePresence has support for many service integrations - get your currently playing song, video, or movie in your Rich Presence. We currently support:

  • Apple Music
  • FooBar2000
  • Google Play Music
  • IMDB
  • lastFM
  • Spotify
  • YouTube

Get information on using these service here after following the setup guide.

Wiki

All instructions for setup, customization, and usage of SimplePresence are in our Wiki. Press here to see it.

Thanks

Thanks to devsnek for his original Rich Presence example, which helped with much of the base code used for EasyRPC.

Thanks to Rung#9946 for the Changing Images section on the wiki.

Thanks to Ardia#7038 for the initial FooBar2000 integration code and FooBar2000 setup page (on the wiki).

simplepresence's People

Contributors

advaith1 avatar alipoodle avatar dependabot[bot] avatar drewbitt avatar frankheijden avatar julianschiavo avatar tobitenno avatar voidn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simplepresence's Issues

Error when using Spotify

Checklist

  • I am on the latest version

  • I am on the latest version of dependencies

  • I have followed the instructions in the Wiki

  • I am on the latest version of Discord

Type

Please select what type of issue this is. Please do not use Issues for Support, ask on the Discord!

[ ] Feature Request

[x] Bug Report

Description

I can use the custom or YouTube mode without issues but if I wanna use Spotify I get this error:
{ Error: connect ECONNREFUSED 127.0.0.1:4381 at Object.exports._errnoException (util.js:1024:11) at exports._exceptionWithHostPort (util.js:1047:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1150:14) code: 'ECONNREFUSED', errno: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 4381 }

Specifications

Version is the version of EasyRPC, Platform is Windows/macOS/Linux, and Platform Version is the version of the platform (e.g. 10.13.1 for macOS, or 10 for Windows.).

  • Version: Newest
  • Platform: MacOS
  • Platform Version: 10.14.3

Confirmation of support for latest versions of Discord

Type

Please select what type of issue this is. Please do not use Issues for Support, ask on the Discord!

[ ] Feature Request

[ ] Bug Report

Description

We should check SimplePresence still works fine.

Specifications

Version is the version of SimplePresence, Platform is Windows/macOS/Linux, and Platform Version is the version of the platform (e.g. 10.13.1 for macOS, or 10 for Windows.).

  • Version: All
  • Platform: All
  • Platform Version: All

missing script: start

Checklist

  • I am on the latest version

  • I am on the latest version of dependencies

  • I am on the latest version of Discord

  • I have followed the instructions in the Wiki

Type

Please select what type of issue this is. Please do not use Issues for Support, ask on the Discord!

[ ] Feature Request

[ ] Bug Report

Description

Replace this text with a description of the bug or feature request. If this is a bug report, include what you expected to happen and what actually happened.

Specifications

Version is the version of EasyRPC, Platform is Windows/macOS/Linux, and Platform Version is the version of the platform (e.g. 10.13.1 for macOS, or 10 for Windows.).

  • Version:
  • Platform:
  • Platform Version:

Checklist Recommendation - Tasklist instead of pure text

Checklist

[x] I am on the latest version

[x] I am on the latest version of dependencies

[x] I am on the latest version of Discord

[x] I have followed the instructions in the Wiki

Type

Please select what type of issue this is. Please do not use Issues for Support, ask on the Discord!

[x] Feature Request

[ ] Bug Report

Description

Update Issue Template with checkboxes to allow people to complete checklist without editing markdown

Specifications

Version is the version of EasyRPC, Platform is Windows/macOS/Linux, and Platform Version is the version of the platform (e.g. 10.13.1 for macOS, or 10 for Windows.).

  • Version: 2.0.4
  • Platform: Windows
  • Platform Version: 10

Uncaught Exception: Operation failed - Most likely the backend service failed. Please try again.

Checklist

  • [x ] I am on the latest version

  • [x ] I am on the latest version of dependencies

  • [x ] I am on the latest version of Discord

  • [x ] I have followed the instructions in the Wiki

Type

Please select what type of issue this is. Please do not use Issues for Support, ask on the Discord!

[ ] Feature Request

[x] Bug Report

Description

Using the lastfm integration, which works great, but keeps popping up exception errors like below. These should be supressed as it seems it working fine on future passes, because it's still working after that.

Uncaught Exception:
Error [ERR_UNHANDLED_ERROR]: Unhandled error. ({
error: 8,
message: 'Operation failed - Most likely the backend service failed. Please try again.'
})
at module.exports.emit (events.js:199:17)
at module.exports.bubbleError (C:\SimplePresence-master\node_modules\lastfm\lib\lastfm\recenttracks-stream.js:88:12)
at module.exports.emit (events.js:210:5)
at IncomingMessage. (C:\SimplePresence-master\node_modules\lastfm\lib\lastfm\lastfm-request.js:120:16)
at IncomingMessage.emit (events.js:215:7)
at endReadableNT (_stream_readable.js:1183:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)

Specifications

Version is the version of EasyRPC, Platform is Windows/macOS/Linux, and Platform Version is the version of the platform (e.g. 10.13.1 for macOS, or 10 for Windows.).

  • Version: ? Latest? Just installed yesterday.
  • Platform: Windows
  • Platform Version: 10

Transparent Titlebar

Checklist

  • I am on the latest version

  • I am on the latest version of dependencies

  • I am on the latest version of Discord

  • I have followed the instructions in the Wiki

Type

Please select what type of issue this is. Please do not use Issues for Support, ask on the Discord!

  • Feature Request

☑️ Bug Report

Description

2019-06-22 15:26:39.686 Electron[19323:154985] *** WARNING: Textured window <AtomNSWindow: 0x7f88b75cf020> is getting an implicitly transparent titlebar. This will break when linking against newer SDKs. Use NSWindow's -titlebarAppearsTransparent=YES instead.

image

Specifications

Version is the version of EasyRPC, Platform is Windows/macOS/Linux, and Platform Version is the version of the platform (e.g. 10.13.1 for macOS, or 10 for Windows.).

  • Version: Latest commit aa08ed0
  • Platform: macOS
  • Platform Version: 10.13.6

Add Indicators for Song title and Artist Name

Checklist

[x] I am on the latest version

[x] I am on the latest version of dependencies

[x] I am on the latest version of Discord

[x] I have followed the instructions in the Wiki

Type

Please select what type of issue this is. Please do not use Issues for Support, ask on the Discord!

[x] Feature Request

[ ] Bug Report

Description

Add indicators for Song title and Artist Name to their strings. Would love one for time left to keep the indicators rolling, but it looks like that's managed differently.

(I already have the change ready, it just asked me to make an issue first, so I am.)

Image in implementation:
image

Specifications

Version is the version of EasyRPC, Platform is Windows/macOS/Linux, and Platform Version is the version of the platform (e.g. 10.13.1 for macOS, or 10 for Windows.).

  • Version: 2.0.4
  • Platform: Windows
  • Platform Version: 10

Error while trying to install the dependencies

Checklist

  • I am on the latest version

  • I am on the latest version of dependencies

  • I am on the latest version of Discord

  • I have followed the instructions in the Wiki

Type

Please select what type of issue this is. Please do not use Issues for Support, ask on the Discord!

  • Feature Request

  • Bug Report

Description

I expected this to download correctly, instead, I got this:

npm ERR! Error while executing:
npm ERR! /usr/local/bin/git ls-remote -h -t ssh://[email protected]/justJS/prism-media.git
npm ERR!
npm ERR! [email protected]: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/admin/.npm/_logs/2019-03-15T15_36_36_083Z-debug.log
admins-MacBook-Air:SimplePresence admin$ npm i
npm WARN deprecated [email protected]: use node-fetch instead
npm ERR! code 1
npm ERR! Command failed: /usr/local/bin/git checkout patch-1
npm ERR! error: pathspec 'patch-1' did not match any file(s) known to git

Specifications

Version is the version of EasyRPC, Platform is Windows/macOS/Linux, and Platform Version is the version of the platform (e.g. 10.13.1 for macOS, or 10 for Windows.).

  • Version: Newest
  • Platform: macOS
  • Platform Version: 10.14.3

Error while installing npm dependecies

Checklist

  • I am on the latest version

  • I am on the latest version of dependencies

  • I am on the latest version of Discord

  • I have followed the instructions in the Wiki

Type

Please select what type of issue this is. Please do not use Issues for Support, ask on the Discord!

  • Bug Report
  • Feature Request

Description

When running ´npm install´ on the latest version on macOS Mojave
npm WARN deprecated [email protected]: use node-fetch instead
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://[email protected]/justJS/prism-media.git
npm ERR!
npm ERR! [email protected]: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/MYNAME/.npm/_logs/2019-02-18T20_27_46_970Z-debug.log

Specifications

Version is the version of EasyRPC, Platform is Windows/macOS/Linux, and Platform Version is the version of the platform (e.g. 10.13.1 for macOS, or 10 for Windows.).

  • [?] Version:
  • [macOS] Platform:
  • [10.14.1] Platform Version:

Not working

Checklist

  • I am on the latest version

  • I am on the latest version of dependencies

  • I am on the latest version of Discord

  • I have followed the instructions in the Wiki

Type

Please select what type of issue this is. Please do not use Issues for Support, ask on the Discord!

[ ] Feature Request

[ ] Bug Report

Description

Replace this text with a description of the bug or feature request. If this is a bug report, include what you expected to happen and what actually happened.

Specifications

Version is the version of EasyRPC, Platform is Windows/macOS/Linux, and Platform Version is the version of the platform (e.g. 10.13.1 for macOS, or 10 for Windows.).

  • Version:
  • Platform:
  • Platform Version:

Hi, I've been trying to use this, but it just shows two lines of text and no image even though I tried to edit the config.json file. I should set those two lines using the launched app and not through config.json.

image

TypeError: Cannot read property 'on' of undefined

I think its a node problem. I've just tried making a new electron app for something similar and I've been getting the same error for hours.
We will both have to wait for a new electron to be pushed.

SimplePresence not loading custom inputs correctly

Checklist

  • I am on the latest version

  • [?] I am on the latest version of dependencies

  • I am on the latest version of Discord

  • I have followed the instructions in the Wiki

Type

Please select what type of issue this is. Please do not use Issues for Support, ask on the Discord!

[ ] Feature Request

[X] Bug Report

Description

I have edited the config.json to what I prefer, but when I use npm run custom in the SimplePresence folder I opens the electron app with every line and description of the RPC being "placeholder." I have to manually fix the description, keys, and text every time I open the app and I cannot edit the time "placeholder" line to show a timestamp on my RPC.
image

Specifications

Version is the version of EasyRPC, Platform is Windows/macOS/Linux, and Platform Version is the version of the platform (e.g. 10.13.1 for macOS, or 10 for Windows.).

  • [?] Version:
  • Platform: macOS
  • Platform Version: Mojave (10.14.6)

Does not set Discord status

Checklist

  • I am on the latest version

  • I am on the latest version of dependencies

  • I am on the latest version of Discord

  • I have followed the instructions in the Wiki

Type

Please select what type of issue this is. Please do not use Issues for Support, ask on the Discord!

[ ] Feature Request

[x] Bug Report

Description

Discord rich presence not updated. No errors in console.

Windows 10

Last.fm Integration

Type

Please select what type of issue this is. Please do not use Issues for Support, ask on the Discord!

  • Feature Request
  • Bug Report

Description

Last.fm integration, where it displays your currently scrobbling tracks?

npm ERR! in npc install

Checklist

  • I am on the latest version

  • I am on the latest version of dependencies

  • I am on the latest version of Discord

  • I have followed the instructions in the Wiki

Type

Please select what type of issue this is. Please do not use Issues for Support, ask on the Discord!

[ ] Feature Request

[x] Bug Report

Description

Error in npc install

npm ERR! code 128
npm ERR! command failed
npm ERR! command git ls-remote ssh://[email protected]/devsnek/discord-rpc.git
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\username\AppData\Local\npm-cache\_logs\2021-04-07T02_59_53_829Z-debug.log

Debug.log: A whole phat 702 lines

Specifications

Version is the version of EasyRPC, Platform is Windows/macOS/Linux, and Platform Version is the version of the platform (e.g. 10.13.1 for macOS, or 10 for Windows.).

  • Version: Latest
  • Platform: Windows 10
  • Platform Version: Latest

Timestamp check on Google Play Music is 100x more than the actual time left

Checklist

  • I am on the latest version

  • I am on the latest version of dependencies

  • I am on the latest version of Discord

  • I have followed the instructions in the Wiki

Type

Please select what type of issue this is. Please do not use Issues for Support, ask on the Discord!

[ ] Feature Request

[x] Bug Report

Description

Replace this text with a description of the bug or feature request. If this is a bug report, include what you expected to happen and what actually happened.
I was noticing that even after enable timestamps, with the "start" config, that it wasn't showing them in rich presence. The app reported a ridiculous number on each song, often in the thousands of minutes. I checked the json file created by GPMDP in ~/.config, and found that it was reporting in ms, and the client was clearly dividing by 60 then reporting it as minutes. I attached a screenshot with more info.

Specifications

Version is the version of EasyRPC, Platform is Windows/macOS/Linux, and Platform Version is the version of the platform (e.g. 10.13.1 for macOS, or 10 for Windows.).

bug

Blank

Checklist

  • [ x ] I am on the latest version

  • [ x ] I am on the latest version of dependencies

  • [ x ] I am on the latest version of Discord

  • [ x ] I have followed the instructions in the Wiki

Type

Please select what type of issue this is. Please do not use Issues for Support, ask on the Discord!

[ ] Feature Request

[ x ] Bug Report

Description

Blank even after writing the text file. Only thing I see is after scrolling down "Upload images". Does not set rich presence in Discord.

electron_2020-05-08_13-25-31

Specifications

Version is the version of EasyRPC, Platform is Windows/macOS/Linux, and Platform Version is the version of the platform (e.g. 10.13.1 for macOS, or 10 for Windows.).

  • Version: EasyRPC? I'm assuming you mean SimplePresence. Latest.
  • Platform: Windows
  • Platform Version: 10

node -v
v10.15.3
npm -v
6.14.1

rpc conenction timeout

Checklist

  • I am on the latest version

  • I am on the latest version of dependencies

  • I am on the latest version of Discord

  • I have followed the instructions in the Wiki

Type

Please select what type of issue this is. Please do not use Issues for Support, ask on the Discord!

  • Feature Request

  • Bug Report

Description

I tried to run it but got an error:

Error: RPC_CONNECTION_TIMEOUT
    at Timeout._onTimeout (/home/xen/Desktop/SimplePresence/node_modules/discord-rpc/src/client.js:99:47)
    at listOnTimeout (internal/timers.js:531:17)
    at processTimers (internal/timers.js:475:7)

Specifications

Version is the version of EasyRPC, Platform is Windows/macOS/Linux, and Platform Version is the version of the platform (e.g. 10.13.1 for macOS, or 10 for Windows.).

  • Version: 2.7.0
  • Platform: GNU/Linux Debian
  • Platform Version: 10

A JavaScript error occurred in the main process

Checklist

  • [✔️] I am on the latest version

  • [✔️] I am on the latest version of dependencies

  • [✔️] I am on the latest version of Discord

  • [✔️] I have followed the instructions in the Wiki

Type

Please select what type of issue this is. Please do not use Issues for Support, ask on the Discord!

[ ✔️] Bug Report

Description

hi i followed the guide on how to install SimplePresence (i already have simple presence back then but i had to format my mac) but when i tried to run the config.json file i kept on getting a Java script error which is pasted below.

App threw an error during load
/Users/username/Documents/GitHub/SimplePresence/node_modules/discord-rpc/src/client.js:634
...r,
^^^

SyntaxError: Unexpected token ...
at createScript (vm.js:74:10)
at Object.runInThisContext (vm.js:116:10)
at Module._compile (module.js:533:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (/Users/username/Documents/GitHub/SimplePresence/node_modules/discord-rpc/src/index.js:6:11)

Specifications

Version: latest one
Platform: Mac
Platform Version: Mojave 10.14.6

Error when trying to use Apple Music

Checklist

  • I am on the latest version

  • I am on the latest version of dependencies

  • I am on the latest version of Discord

  • I have followed the instructions in the Wiki

Type

Please select what type of issue this is. Please do not use Issues for Support, ask on the Discord!

[ ] Feature Request

[x] Bug Report

Description

When trying to run the Apple Music service, I get this error:

Error: 36:41: syntax error: Expected “then”, etc. but found identifier. (-2741)

    at ChildProcess.<anonymous> (/Users/jrub/SimplePresence/node_modules/node-osascript/lib/index.js:39:15)

Specifications

Version is the version of EasyRPC, Platform is Windows/macOS/Linux, and Platform Version is the version of the platform (e.g. 10.13.1 for macOS, or 10 for Windows.).

  • Version: Latest? Not sure how to find this
  • Platform: macOS
  • Platform Version: 10.15.4

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.