Code Monkey home page Code Monkey logo

vlc-discord-rpc's Introduction

vlc-discord-rpc

Discord rich presence for VLC media player.

This repository should be considered abandoned. You will need to create your own Discord application now.

Example

Join us on Discord.

Setup

Requirements

Steps

  1. Download the latest release for your platform
  • If you download a bundle release, you will not need to install Node.JS/NPM
  1. Unzip the file
  2. Follow these steps to create an Application (album art optional)
  3. Launch the start file
  4. Play media in the VLC window that opens

Configuration

Configuration is done by editing the config/config.js file. Each option is explained in a comment above it.

For advanced features, see ADVANCED.md.

Limitations

  • When running multiple concurrent instances, only the first-opened instance of VLC will have a rich presence
  • The rich presence cannot display album art
  • This program does NOT allow you to stream media to others

vlc-discord-rpc's People

Contributors

dylhack avatar pigpog 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

vlc-discord-rpc's Issues

Unable to get script working in 'detached' mode.

Describe the bug
A clear and concise description of what the bug is.
When loading the script, it installs correctly. Yet when trying to run 'detached' mode it simply won't detect VLC even if reopened.
Does the script show an error?
The error message shown is: 'Failed to reach VLC. Is it open?'
Does Discord display that you are "Playing VLC Media Player"?
Only in 'default' mode. I have not been able to get it to work on 'detached' mode.

To Reproduce
Steps to reproduce the behaviour:

  1. Go to where you extracted the zipped contents to.
  2. Modify the bat file to run in detached mode. Click on start.bat
  3. Make sure VLC is open in the background while the script attempts to load up.
  4. The error shows up in the batch file's console window.

Terminal output
Share what your terminal says when you run the script.
image

Your Setup:

  • OS: Windows 10 Home
  • NodeJS version v12.18.4

Additional context
I have followed the instructions on how to configure for detached mode but still does not seem to work correctly, only works in default mode which isn't practical if I close the VLC window since the script also closes.

Errors while installing

Whenever I attempt to install I get

C:\Users\maxla\Desktop\vlc-discord-rpc-master>npm install
npm WARN [email protected] requires a peer of bufferutil@^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of libsodium-wrappers@^0.7.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of sodium@^2.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of uws@^9.14.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of zlib-sync@^0.1.0 but none is installed. You must install peer dependencies yourself.

added 39 packages from 56 contributors and audited 46 packages in 10.77s
found 11 vulnerabilities (9 moderate, 2 high)
run npm audit fix to fix them, or npm audit for details

Special characters in passwords

When I add VLC process as a game, Discord grabs the current band name and song title playing and then never updates it upon songs changing or vlc restarting.

I've removed the username below, don't mind the double slashes

node /home//vlc-discord-rpc/rpc.js withvlc
Running...
url.js:338
this.auth = decodeURIComponent(rest.slice(0, atSign));
^

URIError: URI malformed
at decodeURIComponent ()
at Url.parse (url.js:338:19)
at Object.urlParse [as parse] (url.js:149:13)
at Request.init (/home//vlc-discord-rpc/node_modules/request/request.js:138:53)
at new Request (/home//vlc-discord-rpc/node_modules/request/request.js:98:8)
at request (/home//vlc-discord-rpc/node_modules/request/index.js:50:11)
at VlcService.HttpService.get (/home//vlc-discord-rpc/node_modules/droopy-http/HttpService.js:18:3)
at VlcService._statusRequest (/home//vlc-discord-rpc/node_modules/droopy-vlc/VlcService.js:27:7)
at VlcService.status (/home//vlc-discord-rpc/node_modules/droopy-vlc/VlcService.js:49:14)
at update (/home//vlc-discord-rpc/rpc.js:28:6)

Linux
node --version v11.14.0

There were 11 vulnerabilities and audit couldn't fix it, so I installed with no audit.

If I close VLC while playing it still running in discord

Describe the bug
If I close VLC while playing any media it is still showing up in Discord, using detached mode.

To Reproduce
Steps to reproduce the behavior:

  1. Play media on VLC
  2. Start script
  3. Close VLC
  4. Discord still showing that media is playing

Terminal output
0|app | Error: connect ECONNREFUSED 127.0.0.1:8080 0|app | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1128:14) { 0|app | errno: 'ECONNREFUSED', 0|app | code: 'ECONNREFUSED', 0|app | syscall: 'connect', 0|app | address: '127.0.0.1', 0|app | port: 8080 0|app | }

Your Setup:

  • OS: Windows 10
  • NodeJS version v12.13.0

Additional context
I temporary fixed it by editing error handler on diff.js and now working fine :)
I love this feature and I'm looking forward for the VLC Extension, good work, keep it up👍

Code changed:
diff.js, line 57:
.catch((err) => { last.state = "stopped"; callback(last, false); });

Cannot find discord-rich-presence

Don't really know what to put here, if you want more info please ask.

Error log:
internal/modules/cjs/loader.js:605
throw err;
^

Error: Cannot find module 'discord-rich-presence'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
at Function.Module._load (internal/modules/cjs/loader.js:529:25)
at Module.require (internal/modules/cjs/loader.js:657:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (/home/shardion/Apps/vlc-discord-rpc-master/rpc.js:1:78)
at Module._compile (internal/modules/cjs/loader.js:721:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)

Christmas Logo!

Not to seem pushy or anything, but I think it would be nice to change the logo in the status to the Christmas logo so that it matches the logo in the application, I think that would be a neat feature!

RPC staying active when VLC is closed (detached mode), even though 30 seconds mark has passed

Hello,

I have the same problem as described in this issue.

#33

If i ever close VLC, Discord still display whatever i was listening to. Even after the 30 seconds mark. I tried to edit it to 4000. It still displays it forever. Once it reaches "0 seconds remaining".

It stays like that :
image

The only way to make it disapear at all, is to close the CMD window where vlc-discord-rpc start.bat was launched

Thank you for this plugin

VLC install path treated as unicode

Details

OS: Windows 10 (64-bit)
Node: 12.4.0
NPM: 6.9.0
vlc-discord-rpc: 2.2.0

Notes

System language: French

------------------------------------
An error occurred when launching VLC
------------------------------------
Error: spawn C:Program FilesVideoLANVLC�lc.exe ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
    at onErrorNT (internal/child_process.js:456:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:9) {
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn C:Program FilesVideoLANVLC\u000blc.exe',
  path: 'C:Program FilesVideoLANVLC\u000blc.exe',
  spawnargs: [
    '--extraintf',
    'http',
    '--http-host',
    'localhost',
    '--http-password',
    'khp0t539',
    '--http-port',
    9090
  ]
}

Errors when trying to install

I get this message when I try to install it:

D:\Downloads\vlc-discord-rpc-master>npm install
npm WARN [email protected] requires a peer of register-scheme@github:devsnek/node-register-scheme but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of sodium@^2.0.0 but none is installed. You must install peer dependencies yourself.

up to date in 2.502s

D:\Downloads\vlc-discord-rpc-master>

I can't seem to install any of the peer dependencies required; register-scheme and erlpack install but the error doesn't go away, and sodium doesn't install at all, with really strange errors.

When I try launching the program without these dependencies, it just outputs a message about N-API and hangs.

Presence not showing on Discord

Describe the bug
No error, but Discord doesn't show any Presence

To Reproduce
Steps to reproduce the behavior:

  1. Run start.bat and VLC

Terminal output
Connecting to Discord...
Logged in as pegfun16
Presence updated

Your Setup:

  • OS: Windows
  • NodeJS version v12.18.2

Additional context
I tried to run with Detached mode both enabled and disabled.

Launch in detached mode without VLC open give an error

Hi,

I've tried to start the RPC when my windows session open, but if VLC is not started i get an error

events.js:174
      throw er; // Unhandled 'error' event
      ^

Error: connect ECONNREFUSED 127.0.0.1:8080
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
Emitted 'error' event at:
    at Socket.socketErrorListener (_http_client.js:392:9)
    at Socket.emit (events.js:198:13)
    at emitErrorNT (internal/streams/destroy.js:91:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
    at process._tickCallback (internal/process/next_tick.js:63:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node ./src/app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

I hope that will be fixed soon, thank you :)

Discord displays wrong info

Describe the bug
I did everything as it says in the readme file but on discord it just says "Nothing is playing", I have tried with multiple audio files and none of them will show as if they were playing (https://i.imgur.com/E4zIZWw.png)

To Reproduce
I did all the necessary steps, let me pull up pretty much all the config files: https://i.imgur.com/KY2CI6q.png https://i.imgur.com/0CyaRNu.png & https://i.imgur.com/7N8tlCx.png

Terminal output
https://i.imgur.com/0CyaRNu.png I have also tried with cmd and PowerShell

Your Setup:

  • OS: Windows
  • NodeJS version v11.6.0

node_modules not found

Describe the bug
A clear and concise description of what the bug is.

After double clicking start.bat, it can't find the node_modules folder. After attempting to install the modules, it errors out with: "A problem occurred while installing modules. Ensure that npm is installed."
I have node and npm installed to C:\node\nodejs and also have the path added to the %PATH% environmental variable.

To Reproduce
Steps to reproduce the behavior:

  1. Extract the newest version (Sept 6 - Version 2.2.7) (extracted to C:\Users\user\Desktop)
  2. Install the 15.2.0 node binaries, extract (extracted to C:\node)
  3. Add the binaries to the path variable.
  4. Launch start.bat

Terminal output
Share what your terminal says when you run the script.

Did not detect node_modules directory; Installing modules.
[Attempted installing modules, too quick to read, after 2-5 modules gives below output.]
A problem occurred while installing modules. Ensure that npm is installed.
Press any key to continue . . .

Your Setup:

  • OS: Windows 8.1 Enterprise
  • NodeJS version v15.2.0, NPM version v7.0.8

Additional context
Add any other context about the problem here.

EXE file is a virus?

Just downloaded the latest version to find Windows Defender screaming that it found threats. Here's the info:

failed to communicate with discord client

Describe the bug
A clear and concise description of what the bug is.
Does the script show an error?
Does Discord display that you are "Playing VLC Media Player"?

To Reproduce
Steps to reproduce the behavior:

  1. download
  2. run npm install
  3. run npm start

Terminal output

> [email protected] start /home/pigpog/Desktop/vlc-discord-rpc
> node ./src/app.js

Connecting to your Discord client...
Failed to communicate with your Discord client. Are you sure it is open?

Your Setup:

  • OS: Manjaro Linux
  • NodeJS version: v14.8.0

Additional context
i didnt do anything wrong i swear

How do I uninstall this?

Might be a stupid question but do I just uninstall node and git? And also delete the "vlc-discord-rpc-master" folder?

SyntaxError: Unexpected identifier

Describe the bug
Running rpc.js after following instructions yields the error shown in Terminal output

To Reproduce
Steps to reproduce the behavior:

  1. Install and follow instructions
  2. Error

Terminal output

PATH\node_modules\discord-rich-presence\node_modules\discord-rpc\src\Client.js:128
    async login(options = {}) {
          ^^^^^

SyntaxError: Unexpected identifier
    at Object.exports.runInThisContect (vm.js:76:16)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
.
.
.

Your Setup:

  • OS: Windows
  • NodeJS version: v6.9.4

Additional context
N/A

Script doesn't adjust it's time remaining according to the playback speed.

When running this script and playing videos through VLC, the script is always assuming that the playback is always at normal speed, which is for the most part correct, but if I'm doing something a bit less interesting, I may want to change the playback speed to speed it up, or slow the video down to analyse it, so I'd like the RPC to have the time remaining updated accordingly.

what did u expect this to say

Hi, it seems to be working with me but I have this default message showing instead of the actually played file.
Do you know what I should check to fix this issue?
image

Pathchange dosent work

Describe the bug
Hey, I have VLC installed to a "wierd spot" and also set this spot in config.js but it still shows the error..
Does the script show an error? - Yes
Does Discord display that you are "Playing VLC Media Player"? -> No

Terminal output

Starting script...

> [email protected] start D:\Data\Downloads\vlc-discord-rpc-win\vlc-discord-rpc
> node ./src/app.js

Connecting to Discord...
------------------------------------
ERROR: A problem occurred while launching VLC. Most likely, you installed VLC to a weird spot and will need to set the vlcPath value in config/config.js to the path to your vlc executable (eg. vlcPath: "C:/Program Files/videolan/vlc/vlc.exe")
------------------------------------
Waiting 20 seconds before exiting to give you time to read the error message :)
Logged in as TDR_Minecraft

Your Setup:
Windows 10 Pro x64
Node.js v14.17.3

config file

// See CONFIGURATION.md for more information

module.exports = {

	// Overrides command used to launch VLC when in attached mode
	// If blank, defaults are used
  vlcPath: "D:\Program Files\VideoLAN\VLC\vlc.exe",

  rpc: {
    id: '410664151334256663',
    updateInterval: 5000,
    sleepTime: 30000,
    // Show the album track number when applicable. Example: (2 of 10)
    displayTrackNumber: true,
    displayTimeRemaining: true,
    // If true, VLC will not be opened for you.
    // Note: You must set a password
    detached: false,
  },

  vlc: {
    // If blank, a random password is used
    password: '',
    port: 8080,
    address: 'localhost'
  },
};

A problem occured while launching vlc.

Sure I'm the stupid one in the story, but can't figure out the source of the problem.
Can somebody please help me with the phenomenon mentioned below?

Describe the bug
When launching the start.bat file, I get the following error message:

A problem occurred while launching vlc.
Press any key to continue . . .
Connecting to Discord...
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node ./src/app.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\RozvM\AppData\Roaming\npm-cache\_logs\2020-11-17T13_02_19_888Z-debug.log

Log: https://pastebin.com/QNTcU8dS

Your Setup:

  • OS: Windows
  • NodeJS version: 14.15.1

Run on background

would it be possible to make the cmd/program run in the background or in tray so it doesnt take the space on taskbar ?

Readme could use additional information

As the readme currently is, I am really not sure what how this discord rich presence is supposed to work. I think adding some clarification or more details may help people in the same situation as I am.

I am running Linux, my vlc is installed in the default location /usr/bin/vlc
I also installed npm into the unzipped folder to be safe.
This is what happens when I run the script.
image

NPM Error and Discord displaying wrong info.

Describe the bug
A clear and concise description of what the bug is.
Its giving me loads of errors when i try to install npm and the rpc isnt working correctly.
npm audit fix doesnt fix the problem. Ive tried to run with and without Admin.

Does the script show an error?
Check terminal output.

Does Discord display that you are "Playing VLC Media Player"?
Yes but its broken. https://i.imgur.com/QlOYi6R.png

To Reproduce
It happens everytime i try to install it.

Terminal output
Your environment has been set up for using Node.js 11.6.0 (x64) and npm.

C:\Windows\System32>cd "C:\Users\Luke\Downloads\vlc-discord-rpc-master"

C:\Users\Luke\Downloads\vlc-discord-rpc-master>npm install
npm WARN [email protected] requires a peer of register-scheme@github:devsnek/node-register-scheme but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of register-scheme@github:devsnek/node-register-scheme but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of bufferutil@^3.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of node-opus@^0.2.7 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of opusscript@^0.0.6 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of sodium@^2.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of libsodium-wrappers@^0.7.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of uws@^9.14.0 but none is installed. You must install peer dependencies yourself.

audited 53 packages in 1.458s
found 11 vulnerabilities (9 moderate, 2 high)
run npm audit fix to fix them, or npm audit for details

C:\Users\Luke\Downloads\vlc-discord-rpc-master>

Your Setup:

  • OS: Windows 10 Pro
  • NodeJS version v11.6.0

Additional context
Add any other context about the problem here.

How to edit rich presence ?

Hi guys,
I've try some things for edit rich presence but it's do something and it's always "Play VLC Media Player" and i want to see "Play" and the movie i watch ^^

I'm good in Programming Language but actually i don't find how to edit that :/
It's the AppID ?

Install Dependencies

> npm install
npm WARN [email protected] requires a peer of register-scheme@github:devsnek/node-register-scheme but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of register-scheme@github:devsnek/node-register-scheme but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of bufferutil@^3.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of node-opus@^0.2.7 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of opusscript@^0.0.6 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of sodium@^2.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of libsodium-wrappers@^0.7.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of uws@^9.14.0 but none is installed. You must install peer dependencies yourself.

audited 53 packages in 0.985s
found 11 vulnerabilities (9 moderate, 2 high)
  run `npm audit fix` to fix them, or `npm audit` for details

Your Setup:

  • OS: Windows 10
  • NodeJS version v10.13.0

npm audit fix does not fix them. tried manually installing them and it fails to compile

Invalid or unexpected Token

Describe the bug
A clear and concise description of what the bug is.
Does the script show an error? yes
Does Discord display that you are "Playing VLC Media Player"? no

To Reproduce
Steps to reproduce the behavior:

  1. Open the "start.bat" file

Terminal output
with v12.18.3
image
with v15.14.0
image

Your Setup:

  • OS: [Windows 10 version 20H2 Build 19042.928]
  • NodeJS version (v12.18.3 i also updated to v15.14.0)

Additional context
I have installed VLC in the Program Files of my 2nd hard drive, I have added the path to the config.js

Doesn't work when pinned to the start bar or in a dock.

Describe the bug
Doesn't work when pinned to the start bar or in a dock.
Says NPM isn't installed when it is and that VLC player isn't working.
Does Discord display that you are "Playing VLC Media Player"? Only when I start the bat file in the directory it's saved in.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...' Pinned bat file or Shelf item on Nexus Dock.
  2. Click on '....' Pinned bat file or Shelf item on Nexus Dock.
  3. Scroll down to '....' No scrolling necessary
  4. See error

Terminal output
A problem occurred while launching vlc.
Press any key to continue...

Your Setup:

  • OS: [Windows 7 Pro]
  • NodeJS version 12.16.3-x64

Additional context
Add any other context about the problem here.

Not connecting to Discord client

Describe the bug
Always getting the error,

Failed to connect to Discord. Is your Discord client open? Retrying in 20 seconds.

Yes, the client is running, but not displaying.
I also tried these steps in another this issue, but nothing works.

To Reproduce
Steps to reproduce the behavior:
Simple, launch the script. Doesn't mater if Discord was running or not before.

Terminal output

luxi@Mint-Laptop ~/T/vlc-discord-rpc> sh start.sh

> [email protected] start /home/luxi/Téléchargements/vlc-discord-rpc
> node ./src/app.js

Connecting to Discord...
Failed to connect to Discord. Is your Discord client open? Retrying in 20 seconds...
Connecting to Discord...
Failed to connect to Discord. Is your Discord client open? Retrying in 20 seconds...
Connecting to Discord...
Failed to connect to Discord. Is your Discord client open? Retrying in 20 seconds...
Connecting to Discord...
Failed to connect to Discord. Is your Discord client open? Retrying in 20 seconds...
Connecting to Discord...
Failed to connect to Discord. Is your Discord client open? Retrying in 20 seconds...
Connecting to Discord...
Failed to connect to Discord. Is your Discord client open? Retrying in 20 seconds...
Connecting to Discord...
Failed to connect to Discord. Is your Discord client open? Retrying in 20 seconds...
Connecting to Discord...
Failed to connect to Discord. Is your Discord client open? Retrying in 20 seconds...
^C⏎

Your Setup:
image

luxi@Mint-Laptop ~/T/vlc-discord-rpc> npm version
{ 'vlc-discord-rpc': '2.2.12',
  npm: '6.14.4',
  ares: '1.15.0',
  brotli: '1.0.7',
  cldr: '36.1',
  http_parser: '2.9.3',
  icu: '66.1',
  modules: '64',
  napi: '5',
  nghttp2: '1.40.0',
  node: '10.19.0',
  openssl: '1.1.1d',
  tz: '2021a',
  unicode: '13.0',
  uv: '1.34.2',
  v8: '6.8.275.32-node.55',
  zlib: '1.2.11' }
luxi@Mint-Laptop ~/T/vlc-discord-rpc> npm --version
6.14.4

VLC version: 3.0.9.2 Vetinari
Discord client version:
image

Additional context
I also have Garuda Linux, and Windows (10), if you want to let me test on those

Receiving this error when running

Running...
(node:4556) UnhandledPromiseRejectionWarning: Error: Unhandled "error" event. ([object Object])
at RP.emit (events.js:186:19)
at rpc.login.then.catch (I:\Downloads\vlc-discord-rpc-master\vlc-discord-rpc-master\node_modules\discord-rich-presence\index.js:54:28)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
(node:4556) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:4556) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Crash on start.sh

├─┬ [email protected] 
│ ├── UNMET PEER DEPENDENCY bufferutil@^4.0.1
│ ├── [email protected] 
│ ├── UNMET PEER DEPENDENCY utf-8-validate@^5.0.2
│ └── [email protected] 
├── UNMET PEER DEPENDENCY register-scheme@github:devsnek/node-register-scheme
└── [email protected] 


> [email protected] start /home/lain/Programs/vlc-discord-rpc
> node ./src/app.js

/home/lain/Programs/vlc-discord-rpc/node_modules/discord-rpc/src/transports/websocket.js:48
    } catch {} // eslint-disable-line no-empty
            ^

SyntaxError: Unexpected token {
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:616:28)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/lain/Programs/vlc-discord-rpc/node_modules/discord-rpc/src/transports/index.js:5:14)

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.