#archive-rpc-help
21942 messages · Page 3 of 22
just don't set it more than once per 15 seconds
Snek is the hashing supposed 2 be 2 way and not for security, just so they always get it in the same format
Will it just error and continue or will it error and crash or wut Snek
silently fail
i've asked them to make it error
but it probably won't happen
So I can just keep on looping it and it really won't make a difference.
Snek, what is the point of the hashing. Is it just so they always get the same ammount of chars in a good format
who said anything about hashing
Me ages ago
What is the point of the hashing, this is obviously base64
Is it
Spectate and join is for whitelisting only anyway
I know
So it won't be useful for 90% of the people here
Ofc
But my question is what is the point of the hash, and should it be the hash of the match id
it should be whatever is relevent to you
Why do they want is hashed tho
So by checking the file every run in a forever loop to dump to RPC I won't be missing anything
I was wondering the same thing.
Miroware
About Lavender or me
There's no "c" and "Miro", and I was referring to what you said.
Oops
I was thinking of another guy on discord while typing it sorry
@spark rain fixed that this.socket.close error
huh, I found that by using the new commits (Up to the one you just did) closing the window worked.
SNEK do you know why they want it to be hashed
Can someone tell me how I would make newlines in RPC statuses?
I tried \n to no avail
the same u would in any string??
o
I got this
details: 'Map: ' + items[2] + '\n Server IP: ' + items[0] + ':' + items[4],
making this ugly mess
Like, unless I am missing something beginner here.
@ancient anchor
You're not supposed to use line breaks in those messages, just as you're not supposed to use line breaks in your game playing status.
Ah ok.
So there is 0 way of doing it.
Yes.
So I guess I will dump the map in the tool tip for the large image

ุ
@solid pasture [ ุ ] copy chars inside the [ ]
there is 2 chars
Huh?
Is a RPC always on, or do u need like a console to run it?
if the client is open
its running
client? discord client?
rpc client
It's an app that you have to keep open to keep your rich presence.
discord client
...both.
You need both the app and Discord open on the same device for it to work.
@spark rain tf2 yay
@spark rain What you can do is that you put the images of the map as the largeImage and map name as the largeImageText
¯_(ツ)_/¯
I'd like to thank Snek for the amazong thing he has done with rpc
Good person you

Yes
So is it normal for RP to take forever to notice I closed the app?
Shoulden't really
prob something in discords end
Maybe. Also great timing thinking I should look here
But man it just sits and sits when I close it
@meager thorn yeah that was how I was gonna approach it
Excuse me, I have a doubt, does the RPC server emits messages reactions events?
I'm not able to find anything in the discord official docs but a subscription to the MESSAGE_UPDATE event, which doesn't returns the reactions data
there is no event for that
oh, thanks Gus xD
mhm
I was looking for it, I was about to do some tests to check
if the message update event might contain some "non-documented" data
Hi
not rpc related
nor lib related
oh
?tcd
🔗 The Coding Den: Have a general node.js question? Need some Javascript help? Or even programming in another language? The Coding Den is exactly the place you need to be.
http://discord.gg/code
Thanks...
No problem...
is rpc a lib? 
omg your domains
?
@scarlet aspen seems to like my domains so why not
sorry lol
can you guys stop shitposting
in this channel
thanks
oh kay
does rpc really mean remote procedure calls?
no he lied
yes, it does
i thought that means rich presence client
¯_(ツ)_/¯
it means remote prodecure call
Dang
Cant use rpc
Is there a way to use rich presence without owning a game?
bro i answered you in general
So will there be any way to like set the specific rpc gateway, so I can make it run on the 2nd instance of discord not first?
kinda want to show VS code info on my main and test on dev
i was considering that
but decided not to
no good way to define it
aww okay
What does instance do?
@steady sparrow https://discordapp.com/developers/docs/rich-presence/how-to#updating-presence-update-presence-payload-fields it's for display and internal stuff into discord, it shows like the game is an instanced session (the room could end without the possibility of joining it), not a continue world like a MMORPG
Ah, right
is there docs for discord-rpc ?
ya
like what methods and objects I have access to
besides the exaple
how to initalise client with discord-rpc and commando since both of them initalise client with require
you can't use commando with rpc
ugh
thx gus
do you know what rpc is
yeah
i'm thinking no
yea
no not you
mqke
yea ik
what made you think commando would work with rpc

Rich Presence Client Remote Procedure Calls
rich presence
oh
forget me then
so it can use either IPC or WS huh
ya
but you won't be able to use websocket
any reason why?
you need to register origins
and only whitelisted people can do that
ah
oh I can use OAuth to authorise the app aswell
neat
you'll need to be whitelisted to use anything except rich presence
damn
you can apply @ https://discordapp.com/gamebridge
so rpc is rich presence right?
no
ok
Read Channel Topic.
rpc is remote procedure calls
rich presence is a part of discord's rpc
yea when look up i saw it xD
is it ok if i run 2 bot, one for normal discord bots and another for rpc?
RPC is a call to an application functionality, in this case made through a local websocket in the PC a Discord client is running, it's mostly used to receive and transmit events between the client and the application
there's no use-case of the RPC in a bot
I wonder
@carmine mica does discord-rpc allow connecting to other RPC clients on the network
no it's local
also
idk if it's already in but what about if I have multiple RPC servers
like multiple discord clients
gg4u I guess
kek
also gus one more thing
it seems that when calling destroy the presence does not reset
not until you kill the entire task
yea
can you somehow reset the presence completely?
or is that just not a thing
just remove the game maybe ?
in discord
uh
thats not really an option here
the maxer dude made a disposable client in thier extension to reset the presence lul
well im not saying this isnt the way to go
im just asking out of curiosity if its even possible
If you mean is it possible in the realm of discord-rpc? possible? (havent looked into it myself)
But how else would other games etc reset the presence on quitting the game
quitting isnt the issue
im talking about purposefully resetting it
to nothing
while being connected
@smoky scroll @raw holly that's intended behavior on discord's part
I can't control it
wait what
it's meant to not reset the presence on disconnect?
correct
huh
¯_(ツ)_/¯
so only killing the task resets it
Chris said they would probably add a clear presence thing
maybe sending null will clean it
not sure
tried sending {}
nah
it clears only the rich part
onya
that makes sense
what more do you want
a full clear
discord always does "playing xyz" by if the process is focused
that has nothing to do with rp
ah
kk
thx
check if sending null and undefined work
I think it would throw an error
I can't look at my code rn tho
ya that's what I expected

simple fix
four characters
Gus, I was wondering about what the guy asked earlier (how to reset the rich presence), what does happen if certain application is disconnected from the RPC server (likely an unhandled application error). Perhaps when a client is disconnected from the RPC server the rich presence resets, this shouldn't be this way, but could work as a workaround (I'm just guessing, I have no idea if this could actually work)
can my account get deleted if I set rich presence even though it's not a game?
no
thats allowed
thx
Hi, is there any way to connect with websocket without gamebridge?
nope
@unborn edge this
hi
what
rpc
read channel topic
ok
Why is using scope=identify%20rpc%20rpc.api resulting in error=invalid_scope? I made the app, so I should be on the whitelist?
- instead of %20 maybe
no
@smoky scroll you need to be on the whitelist
to use rpc.api and rpc
all you can do is use rich presence
What scopes are needed for Rich Presence?
none
just do client.login('client id')
don't send a secret
there's an example
ok thanks
So is there a way to use this v whitelist to allow setting Rich Presence with OAuth2?
For invited people.
you don't need to oauth
Why is this not working?
const DiscordRPC = require("discord-rpc");
const CLIENT_ID = "---";
const CLIENT_SECRET = "Nope";
DiscordRPC.register(CLIENT_ID);
const rpc = new DiscordRPC.Client({transport: "ipc"});
const startTimestamp = new Date();
async function setActivity() {
if (!rpc) return;
rpc.setActivity({
details: `Testing`,
state: 'ABC123',
startTimestamp,
largeImageKey: 'galactic_icon_large',
largeImageText: 'Thinking...',
smallImageKey: 'galactic_icon_small',
smallImageText: 'Will this work?',
instance: false
});
}
rpc.on('ready', () => {
setActivity();
setInterval(() => {
setActivity();
}, 15000);
});
rpc.login(CLIENT_ID).catch(console.error);
client.register
Not the entire module
const rpc = new DiscordRPC.Client({transport: "ipc"});
rpc.register(CLIENT_ID);
its on the root
you're just not updated
i don't think those changes are on npm yet
I'm making a web game, would I need to put Rich Presence code on the client or server?
can you do rich presence with web games 
Browserify can convert node modules to Javascript, but I have no idea if the protocol will still work.
All RPC does is send something to a port on localhost, right?
Would the C++ SDK work with Emscripten?
it may work from the browser
nope
@smoky scroll it would not work
I mean discord-rpc
it uses ipc
you can't do ipc through the browser
the C++ one will definetly not work
none of it will work
you would have to get whitelisted by discord and use ws

I wonder if they accept applications from solo devs
So is there currently no way to use Rich Presence from a web game?
not unless you're whitelisted
Would the Tester invites work?
no
that's a different thing
Is there an OAuth2 thing to set Rich Presence?
as i keep saying
no
rip
looks like I will have to allow players to share party links via bot commands
there's an invite thing
looks like this
@smoky scroll
you get a panel like this
ok
Doesn't that need Rich Presence though?
yes



Is there a way to use instead of Playing?
ike instead of playing we could do watching
nope
do i have to install electron to run the rich presence example in doc?
just clone the repo
and do npm i
then npm run example
ty @carmine mica
btw is it even possible to put rich presence to a bot? @blissful pumice
@carmine mica
no
it would be great but ty anyways
Tell discord that
https://discordapp.com/developers/docs/topics/rpc
I don't see any rich presence (SET_ACTIVITY) in rpc commands
Is it undocumented?
?docs client.setActivity rpc
Cry
Okay it isn't even documented?? Gus fix
I am not talking about discord-rpc lib
Because it's a method on the client, which sends the payload
For example message.channel.send isn't on discord developers, because it's a method in the lib which sends the payload to d api
I looked at the source code of discord-rpc and saw it was sending {cmd: SET_ACTIVITY} as far as I understood... Just wanted to understand how it worked under the hood 😄
Ah okay
@AbsoluteZero#0296 discord's docs can be out of date, don't sweat it
I see. Thanks for the info
do you need to be on canary to use rpc
no
what's this id and why shouldn't it be changed 
you provide the application id that the assets belong to
you only dont change it if you want the example to work
because the assets belong to that id
what are assets and how come they belong to an id
when you make a bot account, you are given the option to enable rich presence & add assets
:o
its the same client id there
if discord would load i could provide pictures
have this lovely loading picture instead
yeah right there. you add those images in there. and those assets belong to the client id declared at the top
and what are the assets for?
technically just pictures used for displaying rich presence?
yeah just to show rich presence stuff. like you might have a picture for every world youre in a game,a nd a small asset for the character youre playing
as ive seen in some game presences
can one automate asset uploading
i dont think so, after watchign requests i dont see a way to imitate it
err
actually
no you probably can
so if I have like, 100 pictures to upload, I'd have to do it by hand?
lol
https://discordapp.com/api/oauth2/applications/id/assets
post request there
oh nice
my b, its 4 am
cut me some slack
LOL
thank bella
go get some sleep

np, good luck with it
how does one unset rich presence? 👀
Close the app which is running it
can i use it on linux?
uh, sure?
you can use it on anything that runs node lol
No because you can't add it as a game, if it's not even on localhost
four characters
code bank
?
I might be lost, I don't understand what the non-legible username said xD
I don't either
"osama is here"
🤔
what os are you on
i try to build the socket path by doing uh
const prefix = env.XDG_RUNTIME_DIR || env.TMPDIR || env.TMP || env.TEMP || '/tmp';
return `${prefix.replace(/\/$/, '')}/discord-ipc-0`;
which should be the same thing discord does
can you open your discord client console and search for "rpc"
you should see something like this
currently on linux
but uh one sec
linux isn't very specific
distro plz
raspbian
debian
ok
wait you're running discord on your rpi?
that must be pretty slow lol
i've always run my bot on my pi o;
rpc runs on the same computer as your discord client
like the discord app
that's probably the problem
i was just tryina get a richpres set up on my bot 🤔
luhmao
bots dont get rich presence
🤔
mmm that may also be a thing then
..
LMAO
its an undisputable fact taht bots cant have rich presence
theres no maybe
hhmmmm, so i would actually have to run it on my computer instead of keeping it over on my rpi, then?
yes it has to run where your discord client runs
righty, that got it working
👍
👌🏻
👍🏻
also probably a second dumb question but, when i change the client ID to my other applications, its destroys all
you have to use the client id that has the assets you want
if you change it without changing the assets it wont work
yuppers, made sure i had assets set up
imma guess u copied the wrong id then or something, or used wrong asset names
it works a-ok for me
oh, nevermind it just started working
oh ok
oh ok
might've been because it takes a few mins for new applications to register or whatever good stuff they do
was using an existing application to test and just made a new one
Is there an use case for a game library (like Steam) within RPC server or has to be game spesific?
for example a game integrated with the steamworks C++ interface, could steam take care of discord join lobby request https://partner.steamgames.com/doc/api/ISteamMatchmaking#JoinLobby and change the current game?
er
i dunno
I was wondering about this because if steamworks does implements something like that, every game using their matchmaking API could be accessible from discord and does not has to be writen once per application
if you're using the native discord-rpc impl
made by discord
it would probs look like uh
handlers.onJoinRequest = [=](DiscordJoinRequest req) {
JoinLobby(req.secret);
};
i dunno
I see, I'm going to propose this in the steamworks forums
huh
oh
¯_(ツ)_/¯
do it
xD
DO IT BITCH
NO BALLS U WONT
lul xD
I wasn't sure if this was possible with the current RPC protocol, I guess this will require a more permissive RPC protocol xD
¯_(ツ)_/¯
to make it easier for game developers
lead the way in amazing game stuff foffs
i beli🇧 in u
foffs is godlike
dat ass is godlike

tail*
foffs 
do it no balls
wait, do I have to pay 100 U$D to post an idea to steamworks? 
is this https://github.com/devsnek/discord-rpc/blob/master/example/main.js the example for RPC on a bot account/not in browser? I want to set it up on my bot
@urban sinew u can't
the RPC server is only part of the Discord desktop app
and it's only for users
oohh ok, didnt know that
thanks :)

how does one set the listening to presence 
one sends type 2 on a bot account
does anyone know if discord plans to allow Bot accounts to use RPC?
what's the point though
rich presence is for games and bots cant play games
and game was for users when playing
and bots use it
so why not ?
listening, streaming, all this was for users but we can make it for bots
you can only display info for one person
holy shit someone actually addressed me by my name
same thing reseqo said
we use the activity status as a utility tool to communicate info to the users
same way in which the RPC could be utilized to communicate info to the users.
advertising?
communicating/displaying just any info
respectfully, I didnt ask what RPC is for (I know what it is for, its for users to show what games they're playing and to display rich data around that), Im just asking if anyone knows if discord staff have made any comment on bots being able to use it in the future
Hey
im pretty sure theyre against it
the general consensus is that bots arent going to be allowed to use it
oo okay ty
sorry for the indirect answer
Is custom rich presence against tos?
Ok
Thanks
no liek
I know how it works for the regular presence
but I've seen people with rich presence that said listening to

ya they are using selfbots
thats against tos
pls banne bobby
rpc only allows Playing

Hey, so as of around yesterday, none of my RPC stuff is able to detect my client anymore.
VS Code, Spotify, etc
I get this error:
at Object.exports._errnoException (util.js:1050:11)
at exports._exceptionWithHostPort (util.js:1073:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1097:14)
code: 'ENOENT',
errno: 'ENOENT',
syscall: 'connect',
address: '\\\\?\\pipe\\discord-ipc-0' }```
is your client open
three different clients
stable, canary, ptb
i see
i think i know the issue
restart the one you want to connect to
done
ayy nice boop the snek works
"have you tried turning it off and on again" 
maybe...
i love that game
would pay for it
gus where to donate
I've just realized it was done within the node library xD
so rich presence is allowed if you are not using a selfbot?
*custom rich presence
I think that's not related to #archive-rpc-help.
...something...something...learn JavaScript. 
so it seems like only I can see my rich presence
do I have to get it approved or something?
? Wut
nobody other than me can see my rich presence
they only see the name of the game
your app is named spotify
that's all they can see
thats no bueno
you have to name it something else
What Gus said
ah, so it's the name triggering a filter?
also discord is about to release an official spoitify integration
you might just wanna wait
alright then
I'll keep my eye out for that
there is a spotify rpc i made
made with a friend
👌
mucho gracias
muchas*
muchas gracias
Hi, i was wondering if that would work using foobar instead of spotify? 🤔
sure.just.make.it.work
did.you.lose.your.space.key?
?
Does appellation use the rpc for his vsc rich presence?
ads
banned
come at me 

In order to use RPC do we have to register or something
register?
or can we just node the files and get started
yes
working example comes with the repo
oh nice
thing I made using the rpc api to display your current spotify song using rp: https://github.com/nations/spoticord
Think gus already made one
Oh heck
I can't install electron 
Are you doing it on your computer over vps
As in not on your vps
I don't have a vps 
Well I'm just asking cuz it should work fine if you're on your pc
just goes to node install.js and stays there
it's been 30 mins
npm i -g electron
npm run example
const DiscordRPC = require("discord-rpc");
const ClientId = 'censored';
DiscordRPC.register(ClientId);
const rpc = new DiscordRPC.Client({ transport: 'ipc' });
rpc.on('ready', () => {
console.log("ready");
rpc.setActivity({
details: `test`,
state: 'test',
startTimestamp: new Date(),
// largeImageKey: 'test',
// largeImageText: 'test',
// smallImageKey: 'test',
// smallImageText: 'test',
instance: false,
});
});
rpc.login(ClientId).catch(console.error);
what am I doing wrong?
and where do I put the oauth2 token?
update to latest node
how
and you dont need any oauth2 tokens
is 6.11.311.3 new enough
I don't think that's even close
thats not a node version
latest node.js LTS is 8.9.1
ok
latest node.js is 9.2 iirc but you should just go with LTS tbh
Is using discord rpc to set a custom status alllowed, or can you get banned from discord for using it
custom status being like, editing code etc
It is allowed.
Ok
I’m confused, what Id do we put for client.login
when I put my own it says invalid
thonk
you're supposed to put a token
Your own token ?
how is it allowed then
no
no
oh shit
you put a client id
i thought this was #archive-updating-to-v13
i put my client id
nvm ignoreme
it said invalid
xd
client.login('some client id')
I got a error code 4000 with a message invalid client id
i put my own
then your client id is invalid
how is my own client id invalid
if it’s invalid then what do I put
@carmine mica im getting the logged in log so thats working, but after that i get a "Unknown error"
just fyi
you don’t use literally your accounts id
you need to make an application on the dev platform
enable rpc on it
and use its client id
@smoky scroll
How do you enable rpc on it?
Do you mean rich presence?
I have a problem getting the rpc on node/npm
anyone help?
just like
describe your problem?
instead of asking if anyone can help
yeah, sorry.
I am doing npm i discord-rpc
and ill show logs if okay?
if its the peer dependencies
yes
thats normal
where should I send the logs?
its the git piece of shit
so you dont have git installed?
I have the git bash and scuh
such*
well
make a screenshot of the error then
I have the error in my clipboard on text from the cmd, if I can send it to DM's or anything?
why a dm
just post it in here
well, sure
if its too long go to hastebin
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: register-scheme@github:devsnek/node-register-scheme (node_modules\discord-rpc\node_modules\register-scheme):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: No git binary found in $PATH
npm ERR! code ENOGIT
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\memes\AppData\Roaming\npm-cache_logs\2017-11-29T13_01_33_110Z-debug.log
yea
git isnt in your path
or installed
so how do i get it in my path and which git should I get?
is this windows
yes
I have that
you surely dont have it installed correctly
so do it again
which path should I have it on?
it adds itself to path automatically
I currently have it on my D: partition, because of shits on this pc
that doesnt matter
done
so, what now?
you open a new shell
and go again
so I open a git bash, and do npm i discord-rpc?
it doesnt have to be git bash
whatever terminal you use
well, I get command not found -.-
command not found what
bash: npm: command not found
do you like
even remotely know what you are doing
npm just worked in your error above
and now you tell me it doesnt
I tried it in the Git CMD
im asking again
do you even remotely know what you are doing
i 50/50 know what I am doing.
then how about
you use the npm command
in the terminal
you used earlier
where it worked
Same shit happened, git thing
ok
since this has nothing to do with me anymore now or this server or rpc
you go and google
"how to add git to path"
and edcuate yourself a little bit
or go to
?tcd
🔗 The Coding Den: Have a general node.js question? Need some Javascript help? Or even programming in another language? The Coding Den is exactly the place you need to be.
http://discord.gg/code
and ask for advice on not having git in path
okay I found out and I am an idiot.
I need basically admin privileges, which I dont have on this PC since this is a school PC.
So I can't proceed.
wat
@pure onyx A D V E R T I S I N G
why defuq do you have a school pc without admin and try to develope an rpc app on that 
oh wait, I figured a way around
@undone loom Replace sticky keys with cmd
Then start sticky keys when ur not logged in
cmd with admin privs
people using school pcs to develope that is strange
i mean
just why
i know
....
i am trying something xd
what is shit xd
I MADE IT WORK!
still not rpc related
i know
then dont write in here
I mean

I got RPC into here
I mean
fuck
its still not related
The fuck did I just read
Someone trying to npm discord-rpc using git bash instead of actual cmd
And asking why it's not working

Same
no
u
?
!
yeah stop shitposting
can u actually stop
im sorry
I’m getting a error
what error
<rejected> Error: Unknown Error
thats a pretty cool error
Hm
i'll need to know more
or i can't help you
one sec lemme login on my pv
pc
ill tag u when I’m ready
@carmine mica https://hastebin.com/elobipegud.coffeescript
<rejected> Error: Unknown Error
at RPCClient._onRpcMessage (C:\Users\dab\node_modules\discord-rpc\src\Client.js:156:16)
at emitOne (events.js:115:13)
at IPCTransport.emit (events.js:210:7)
thats from the client then
well yea
its happening when i set the activity
no i mean
thats from the discord client
is there a way to fix it?
do you get it every time
what you mean everytime
everytime i load the script?
whenever it happens
does it happen consistently
yes
cool
open discord console
watch console as you run it
you should see something useful
ok
look for Socket Emit and Socket Message
from [RPCServer:IPC]
@carmine mica got it
what do I do now
show me it
screenshot or smth
Got it working @carmine mica also for like large image key and stuff what can we put, can we put like a image url
no
can i see the actual error object
what was triggering it
etc
@smoky scroll
@carmine mica the large and small image was occurring the unknown err
wdym
invalid keys?
i copied it from your code on the examp,e
so most likely
but I can’t seem to set the name, it’s just saying streamkit overlay
hwhat
you're using test/sk.js?
Yea
no
don't use that
Oh
What do I use
@smoky scroll try the folder called example
tests and examples are not the same thing
why electron tho
because thats what the example is
the image is causing the error @carmine mica
when I remove all the stuff with the image it works fine
can you just show me the object it sends
(╯°□°)╯︵ ┻━┻
which object
is using rich precents API Abuse?
the error
no
b1nzy wont ban me :-)?
the only error I’m getting is a error on the get request to /assets 404
@carmine mica
no I meant
after that
there should be an rpc message
with an error object
Checking
@carmine mica there’s no error object but if there is all I’m getting is ERROR and unknown error
just take a screenshot of that
@carmine mica how does discord-rpc allow for a more detailed game status/activity? Looked at discordjs and it for doesnt seem to have the same capability as discord-rpc
?
they aren't the same thing
uhm
one is rpc
one is bot api
ik....
Well, discord.js is for accessing the Discord API, where you can control all of the online data Discord uses. On the other hand, discord-rpc is a thing you're supposed to embed into your game or program that allows users to have rich presences for said program.
that was a pretty meh explaination

discord.js handles the discord gateway/http api
discord-rpc handles the local client rpc
Discord.js is intended to interact with the Discord API, the Discord-RPC library is intended to interact with a local Discord client RPC server
foffs get rekt
dam :c
@solid pasture @proud loom thank u for actually answering my question
2fast4me
I tried to put it into words a someone who has never touched code before would understand. 😛
Most people just make fake "games" with it though, and set up their own personal rich presences.
atf
i know you hate me
but this is my lib
so you'll have to deal with me
👍
xD
u were a dick to me first, so if there is any hate, its justified
tf didnt gus say the exact same thing, except first
isa
go do ur hw
plz
never
❤
before he pulled a dick for some reason this situation reminds me of this quote xD
i'll pull your dick
wait
wut
.>
💦
:3
:3
hi
when I try to use npm i, when it gets to electron it takes forever
should this be happening?
no
why does it then?
¯_(ツ)_/¯
that's helpful
i dunno
i don't support electron or npm
fair enough
@carmine mica I gotchu fam 
That was a nice professional answer 👌
can't tell if sarcasm or not 
was being for real
I can expect everything from this guild
Does anyone know a reliable way to package RPC applications?
Because I have had no luck here.
define "to package"
Like, to make ones code an EXE or to bundle Node JS with it.
uhh
i dont think you should do that anyways
just create a ZIP out of your files and then do with that whatever you want, when you need it again unpack it and run it as normal
It's just that primarily I want to package it to a not very programmer orientated group (TF2 playerbase)
I only know you can make batch to run the npm script don't know about compiling outside of ts
But eh, might just my over hey-lets-make-this-easy sense kicking in and I am underestimating how intelligent the rest of the world is.
i know there was a project to compile node.js applications to an EXE
but i dont remember it
i have used electron and zeit pkg with great success
I tried PKG and my app never closes, even when the window itself is dead, the Discord still thinks it is running
do you mean the rich presence stays?
that could be a discord bug
Hmmm.
I tried in canary and it still happens, but only on PKG
it works on it's own.
¯_(ツ)_/¯
check for orphaned processes
i can't really support this
Ya know what, I am just gonna go all out set it up yourself mode and since I can sort out the hardest half as an exe (The python segment) the node js part will probably be fine un packaged.
how would i change the "Playing" to "Listening to" or etc.?
🤔
Sefbots are not allowed
o
also you can change that by rpc aswell y21 iirc
@hidden hull master version 
you cannot
unless im missing something
@carmine mica
oh you can't?
gus said you cant, not with rpc,
though so
well then you cant
mb 
you can't
so only bot accounts can use rpc?
the opposite

nani?
i thought selfbots can't
rpc interacts with your discord client
so like, a new instance of my discord client?
no
like ur client picks up games, this sends info to it
ah
so what if i did a playing status on my client that is supported by rich presence?
???????
if u use rpc its allowed
ah
thanks lucario!
np
how do I get the elapsed add the elapsed time for custom rich presense
send timestamps
Can someoen help me with rpc?
upon run I get this error
for (const [name, message] of Object.entries(Messages)) register(name, message);
^
TypeError: Object.entries is not a function```
update to at least node 8
which is LTS now
ok
oh god your right actually I've not updated node in a while
thanks I will try that now
console.log("Discord.js")
@smoky scroll please take your shitposting to a non support channel
@smoky scroll
dud
i was just joking
calm
those
last kind warning to move to a different channel
Tl;dr gtfo
hey guys trying to get rich presence working
cool
im trying this but its not even installing
https://github.com/WalshyDev/Discord-Spotify-RPC#node-spotify-webhelper
module.js:487
throw err;
^
Error: Cannot find module './util'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/gibigbig/node4/spoticord/node_modules/discord-rpc/src/index.js:2:14)
at Module._compile (module.js:569:30)
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)
we dont support your inability to download a script off github
we don't support random modules here
p.s. if you want a good spotify thing
i made one
yeah but i made a better one
yes thats mine
and the error was?
which says its an extension of discordjs which is why im here
ok one sec
what is your question
let me gather the info
module.js:487
throw err;
^
Error: Cannot find module './util'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/gibigbig/node_modules/discord-rpc/src/index.js:2:14)
at Module._compile (module.js:569:30)
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)
thats the same error
same error
yeah
i install discordjs and discord-rpc
and used the example in the documentation with edits to the clientid
looks like an outdated version
i installed from git updated 12 hours ago
nowhere in the current codebase does ./util turn up
so you're outdated
ok im deleting everything and starting over
ok more or less the same thing
I tried running test/rp.js and i get this
{ Error [RPC_CONNECTION_TIMEOUT]
at Timeout.setTimeout [as _onTimeout] (/home/gibigbig/node3/discord-rpc/src/Client.js:109:47)
at ontimeout (timers.js:488:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:283:5) [Symbol(code)]: 'RPC_CONNECTION_TIMEOUT' }
rpc runs on your computer
not a server
@crude pollen
Hmm so I have to install node and stuff on my pc?
I was hoping to avoid that since I have a nice environment in my server
and I just wanted to set the RP vars manually
it communicates with ur discord client
so it must run on wherever ur client is ran
I see, thanks. so just to be clear, I need to install node on my machine, and then install discord-rpc
and then run rp.js locally?
yea
ok trying
thanks guys