#archive-rpc-help

21942 messages · Page 1 of 22

sterile glen

🤔

calm rain

👀

lusty musk

thonkC

strange spade

no

blazing eagle

blobSweats

hard hatch

oh sweet lord no

smoky scroll

aaand staying away from this channel

why cant i mute it wtf

dusty pebble

@carmine mica it's all yours boi

hard hatch

Oh god

smoky scroll

literally not working

hard hatch

Good luck Gus, and have fun at the dumb mistakes some could make

warm radish

how about no

hard hatch

OMG. I phisically can't mute this channel

smoky scroll

yeah i said that

strange spade

woa

i cant mute any

blazing eagle

¯_(ツ)_/¯

hard hatch
strange spade

👀

hard hatch

this is fun

We broke it before even starting it

smoky scroll

yes vlad we know, no need to show gifs

🤔

scarlet aspen

xD

hard hatch

I like to ensure that people know and can see the issue

smoky scroll

thonk

hard hatch

Well. Thats bullshit. I just wanted to post a gif for no reason

smoky scroll

😂

hard hatch

Your TunnelBear is a copypasta message?

scarlet aspen

what does rpc mean

role play came

strange spade

stop deleting me

smoky scroll

rich presence client

scarlet aspen

put link in topic

want to learn more bout it

hard hatch

inb4 they can't edit the channel

strange spade

rpc -> Roblox Prison Camp
correct?

hard hatch

No

You've just been told it means Rich Presence Client

dusty pebble

Remote process communication

hard hatch

Remote Pre-commanded cum-machine

idk, make things up

ancient anchor

why does this channel even exist

fallen hemlock

Let's not make this a troll channel

It has a purpose

ancient anchor

rEeE

fallen hemlock

for RPC support

hard hatch

why does this channel even exist
Gus being EDGY (CC: GitHub Tags)

dusty pebble

Yep, no more off-topic bullshit

dusky oasis

I don't even know if i have that RPC activated xD been messing up with things and I'm sure that something went wrong(As I can't seem to be able to see that rich presence on myself 😄 )

wraith rapids

Gawd, maybe set a channel topic

though i'm not sure that'll help

hard hatch

For reals tho, could you add in the description about the whole discord-rpc extension and thing

fallen hemlock

It's in the library support category

dusty pebble

I'm on mobile

wraith rapids

Ah

dusty pebble

Make grey do it

wraith rapids

@frail fiber ^

frail fiber

I dunno

ancient anchor

lol

frail fiber

Give me a nice topic

ancient anchor

viction is cool

cunning junco

Why cant I mute this channel

frail fiber

Because Didscord is broken rn

fallen hemlock

should link to discord-rpc's npm

hard hatch
Support for discord-rpc``` or something
dusky oasis

"Keep the cunts asking about RPC here rather than general or any other channel"

😄

ancient anchor

wHAT IS DISCORD-RPC!

hard hatch

can you mask links in the topic?

fallen hemlock

auto npm discord-rpc

night sequoiaBOT
hard hatch

this

smoky scroll

also for anone that hasnt figured it out, if you refresh your client the muting and acking will work again

ancient anchor

what does it even do tho?

hard hatch

integrate with Discord's RPC client, idk

dusky oasis

should give you nice things that you cannot see yourself to verify if it's even working well atleast that's what's going on for me 😄

pulsar atlas

Thonk

so I can just replace const Client = require("discord.js") to const Client = require("discord-rpc") and everything works fine?

stray flicker

no

discord.js doesn't export client

pulsar atlas

ah i see

just like moment

have to require discord.js then require discord-rpc

stray flicker

no

pulsar atlas

i know that now

i'm experimenting

stray flicker
const Discord = require('discord-rpc');
const client = new Discord.Client();
carmine mica

oshit

my own channel

@high sky blobkissheart

high sky

I didn't make this but ok

carmine mica

o

who did

high sky

gawd

carmine mica

@dusty pebble thx hun blobkissheart

when I get home I'll set up the topic and stuff

don't break the channel until then kiddos

high sky

until the kiddos what

mmLol

tall wasp

loLmm

steady sparrow

mmV

carmine mica

btw no one was right

it stands for remote procedural calls

ripe vine

i require assistance

high sky

I thought it stood for round perfect circles

carmine mica

I'm a snek

ripe vine
npm WARN addRemoteGit Error: Command failed: git -c core.longpaths=true config --get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit     at ChildProcess.exithandler (child_process.js:205:12)
npm WARN addRemoteGit     at emitTwo (events.js:106:13)
npm WARN addRemoteGit     at ChildProcess.emit (events.js:194:7)
npm WARN addRemoteGit     at maybeClose (internal/child_process.js:899:16)
npm WARN addRemoteGit     at Socket.<anonymous> (internal/child_process.js:342:11)
npm WARN addRemoteGit     at emitOne (events.js:96:13)
npm WARN addRemoteGit     at Socket.emit (events.js:191:7)
npm WARN addRemoteGit     at Pipe._handle.close [as _onclose] (net.js:510:12)

when trying to install

carmine mica

uhhhhhh

high sky

"maybeClose"

carmine mica

looks like your network blocks github

RIP

ripe vine
carmine mica

no

I mean opening a streaming socket to github

for cloning

a lot of firewalls block that accidentally

ripe vine

turn off firewall(?)

carmine mica

not sure how your network is set up

and when this module is out of beta this won't be a problem anyway

ancient anchor

I still don't understand what it does

carmine mica

it's for discord's rpc

I'll add some links when I get home

ancient anchor

What does it do with it?

Ah okay

carmine mica

I think

ancient anchor

Ty

dusty pebble

@carmine mica lol I actually know that, but was mixing up with IPC

carmine mica

plz

oblique gorge

how come only people with roles are talking

thonkku

oh nvm

duckSmug

low cape

people asking what rpc is: all of them

people that need help with rpc: 0

quick wagon

hi

no roles is best role

summer bridge

as I see it, rich presence is for game developers
people who can develop a game likely don't need too much help developing said game
if game developers need help integrating an external service, they probably will look at docs or a guide for it and figure it out
what I don't see game developers doing.. is going to some Javascript bot library server for help with rich presence

correct me if I'm wrong ¯_(ツ)_/¯

quick wagon

tfw u only make singleplayer games so there's no point of integrating rp

summer bridge

also why is there a c in rpc Thonk

quick wagon

rpc stands for remote procedural calls

summer bridge

oh ok

carmine mica

@summer bridge no matter what someone is doing there are always idiots e.g. discord.js is for bot devs, bot devs don't need too much help developing said bots

except they do need help

summer bridge

eh okay
but how is rpc related to djs?

steady sparrow

Gus made it so it's d.js fuck you

I mean what

quick wagon

nani

smoky scroll

after reading the heck is rpc, I still don't know wat is rpc

but then seeing it's for discord app

and I'm using web client

not for me then

back to general

quick wagon

same

smoky scroll

What is this

steady sparrow

Remote procedure calling or W/e

fallen hemlock
summer bridge

oh wait i see you made a library for rpc that extends djs
i retract my arguments 👀

rich fern

Wait what is client id?

ember mulch
rich fern

I meant , for discord-rpc, the client id, the the user id?

Or how do i get one for myself

@ember mulch

ember mulch

Here no bother now thankle bb

Next time learn reading

rich fern

UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): [object Object]

Not sure what this means

ember mulch

It means you have an unhandled promise rejection

It says it twice

rich fern

I pasted the code thats on the npm page

ember mulch

You cannot copy paste code without reading and expect it to work

snow ocean

THE HECK IS RPC

oops caps

grand marsh

dunno

why dont you read the channel description

and find out

snow ocean

that's exactly the reason why i sent that message

grand marsh

facepalm

Read the channel description

snow ocean

i read the channel description before i sent that message

so basically rpc allows games to send data to discord for stuff like rich presence?

grand marsh

y e s

snow ocean

alright

it makes sense now

smoky scroll

owo new channel

wide cloud

So, tryin it out, setActivity doesn't seem to be doin anything?

dusky oasis

Well I assume I got sneks RPC stuff working well 0 errors 😄 but sad part is that I would need 2nd user to even see if it works as I want it to 😄

wide cloud

Oh does it not work publicly if not on the app whitelist?

dusky oasis

some of them should work but specific parts won't work if not whitelisted

wide cloud
dusky oasis

did you send the email to ask being whitelisted?

well as far I understood and saw it seems like you cannot see RichEmbed on yourself but others should see(well I currently see the same as you on your profile)

idk if I have RPC visible if you click on my my name though :S it should be up atm

wide cloud

don't see any rich presence

dusky oasis

on my profile?

wide cloud

what i see

dusky oasis

well time to figure out why it's not working 😄

wide cloud

I'm not getting any errors and using the example, might be a lib thing, might be an api thing ¯_(ツ)_/¯

dusky oasis

well same thing no errors and working client id 😄

ah it's not really public use yet :S you need to fill awful forms etc of your game studio etc to apply 😄

wide cloud

rip

maybe I should just make a shitty game and put it on steam so I can mess around with it xD

tribal vessel

Nick myself on the phone

wide cloud

(right click your name)

Press and hold your name

tribal vessel

K

wide cloud

menu should come up

tribal vessel

K

What next?

Settings

?

dusky oasis

oh well less things to worry about 😄

oblique gorge

it's funny

because you think you know what's happening

but you don't

wide cloud

care to explain?

oblique gorge

nup

fuck ya

snow ocean

oof

wide cloud

ohh gg, got it wokin

@dusky oasis Try using it with electron, and set your game to the electron window

dusky oasis

hmm nerdism are you disabling DMs? 😄

that clyde thing is going nuts when trying to DM you

dusky oasis

has someone managed to get assets part working or is it just my case that it seems like it cannot find the images uploaded even when identifiers are correct?

meager thorn

its a bug in discords part

@dusky oasis

rich fern

How exactly do you use this?

dusky oasis

@meager thorn ah thank you.

meager thorn

np

obsidian shore

So selfbots are allowed as long as you use the rpc server

tall wasp

no

a rpc client isn't a selfbot

rpc clients can only interact with RichPresence

mild ruin

Then why can't RichPresence stuff be accessible via discord.js itself?

vernal sinew

what is rpc

low shoal

rectal probing console

snow ocean

^

because it's part of the api or something

same reason why we can make selfbots

tall wasp

it is acessible via discord.js

but

selfbots are still forbidden

meager thorn

selfbot aren't allowed

Rich presence can be done via discord.js yes but it will be easy to recognize

And will get you banned

ancient anchor

Exactly? That's why yukine said "selfbots are still forbidden"

meager thorn

ye im just saying

tall wasp

WaitWhat

meager thorn

They aren't allowed and if a Discord developer sees you using it they won't hesitate to ban

Meanwhile RPC is not a selfbot at all

tall wasp

yea but thats why RPC is a thing

exactly

👀

i already said that mutiple times

:c

meager thorn

Although RPC isn't meant only for rich presence

You can do other stuff if you have the power to

tall wasp

but its mostly used for it

because its not bannable

like selfbots

but you can get a cool playing status

👀

meager thorn

Yeah

Waiting for gus to make a new update about the timestamps

@carmine mica so I guess you know what happened in discord api right .-.

tall wasp

crashing all mobile clients because of sending timestamps as floats

yea

im sure he knows

meager thorn

float

tall wasp

i was near

👀

meager thorn

Ye

carmine mica

@meager thorn?

ancient anchor

@tall wasp was this at this morning ?

We'll, 8 hours ago

Ish

tall wasp

yea think so

ancient anchor

Yeah that's why my phone discord was fucked

It fucked nicknames, roles and all shit

meager thorn

im so sorry qq

@carmine mica basically Discord doesn't check if its actually a long or not so if you put a decimal , it will cause android users to have some issues

carmine mica

right

but what does that have to do with this

javascript doesn't represent unix timestamps with floating point

meager thorn

Just parse as int

carmine mica

?

that bug won't ever affect this module

so its not a problem

meager thorn

Date.now() will give you the unix timestamp as in the

Milliseconds

carmine mica

correct

and?

meager thorn

Discord wants it in seconds

carmine mica

incorrect

meager thorn

Literally to get mine to get elapsed time I had to

1510590721077

Date.now() will give u this

1510590721

Discord just wants this

carmine mica

incorrect

meager thorn

Literally try it yourself

carmine mica

i already have

thonk

meager thorn

And so did I just 2 hours ago

Using date.now() will just cause the elapse time to be 00:00 for awhile

carmine mica

i've never had that issue

¯_(ツ)_/¯

sudden glacier

so is the tie-in for this for like selfbots?

meager thorn

no

sudden glacier

how would a normal bot benefit from RPC

meager thorn

RPC != selfbot

RPC doesnt have features bots have\

and the other way around

currently if you aren't a part of the gamekit you have limitations on what you can do with RPC

which if you aren't a part of this gamekit thing then the only purpose you would use would be for Rich Presence

sudden glacier

the gamekit is for gamedevs right?

meager thorn

Mhm and its apply only

sudden glacier

so you wouldn't be able to create a game invite for a bot using rich presence

meager thorn

?

try rephrasing that in a better way

sudden glacier

i guess i don't understand what rich presence is exactly

meager thorn

rich presence is the new game display

for people that implemented it

sudden glacier

it's metadata info for what game you're playing right?

meager thorn

this is rich presence

sudden glacier

ok

meager thorn

the right way to use rich presence is to use RPC\

you can use a selfbot but I don't encourage that\

since you can get banned

sudden glacier

is there a way that you can have a join link in rich presence?

i realize that depends on the game developer actually writing that code using the gamebridge sdk

meager thorn

yeah

if you are talking about\

people clicking the join button and it opening a link

that is not how it works

sudden glacier

i mean it's there in the RPC docs on discord's site though

meager thorn

wtf do you mean

this is to interact others if they have the game

if im playing lets say

Destiny 2

and my friend has destiny 2

and I click on the join button

it will send a request to join to him

if he accepts

it will make me JOIN his game

that I own

sudden glacier

yeah

meager thorn

it wouldent open any other executable

if that is what you mean then yeah

but the other user needs to have the game

sudden glacier

well obviously

but that only works for each user

so how does a bot benefit from rpc

or can they even take advantage of anything RPC-related

meager thorn

no

bots don't have anything to do with RPC

sudden glacier

ok, thanks. Didn't seem like they would.

meager thorn

np

dusky oasis

I like that yesterdays 12 hours outage on API and +6h today 😃 is the RPC breaking things that badly?

well finally the images on RPC side work 😃

and down again 😄 seems like it takes quite long after uploading asset for it to even become visible could be something with the caching

carmine mica

@dusky oasis are you using discord-rpc

well

the js module

dusky oasis

yup

carmine mica

part of electron app?

dusky oasis

yes xD

carmine mica

did you have to manually declare it to discord

with the dropdown menu

dusky oasis

everything else works though the asset identifiers do not

carmine mica

you should check the response that you get from setActivity

dusky oasis

well I just had to add the electron app I'm running as "game"

carmine mica

check if the assets are filled

woven fiber

Ye

Excuse me, how do you use discord-rpc example? I know I need to set game but cmd won't show up as a game? Are you supposed to log in with app id

carmine mica

the process it runs in must have a gui

woven fiber

Okay

carmine mica

otherwise the discord client will ignore it

dusky oasis

ugh now if my short brain just processes that how did i print that from the lib again but sec 😄

carmine mica

setActivity({ ... }).then(console.log)

dusky oasis

argh promises... I keep forgetting that thing :/

seems like missing the images for whatever reason O.o

carmine mica

when you created the assets

you ticked off large or small

make sure that matches

dusky oasis

yes i have checked 😄

carmine mica

¯_(ツ)_/¯

could be that server bug

i'll ask chris

dusky oasis
largeImageKey: 'suomipelitmaraton',
largeImageText: 'suomipelitmaraton',
smallImageKey: 'suomipelitmaraton_pieni',
smallImageText: 'suomipelitmaraton',
carmine mica

ya

i'll let chris know

whats your app id

rich fern

I believe you need to have the Id of the picture

For largeImage

dusky oasis

damn cannot send it on DM 😄

carmine mica

no

doacola don't worry

its not a secret thing

app id is safe to share

dusky oasis

379350676997931008

carmine mica

@rich fern the client will automatically convert the names to ids

if you don't

rich fern

Oh

dusky oasis

but snek here's something I really got confused about

with earlier assets everything was fine but images did not appear but about 1-2 hours later the images "magically" appeared

carmine mica

like i said

server glitch

dusky oasis

ah sry brains running out of memory 😄 getting SIGKILL messages silently 😃

woven fiber

Why did you start typing just when I came on

dusky oasis

ah pressed spacebar after alt tab

woven fiber

Oh k

woven fiber

SNEK, I really appreciate the port to js 😉

carmine mica

👍🏻

dusky oasis

damn this is confusing 😄

the data is there like it should but after passing it to the request it just somehow loses the images somewhere but where 😄

carmine mica

it's a client bug

was just told by a dev

if you delete the discord app data folder it should fix it temporarily

ancient anchor

@dusky oasis do u have gamebridge or smth?

or can anyone use rich presence?

dusky oasis

@ancient anchor no I don't but if you want to use it electron should work with it thx to tip from that nerdgasm guy

ancient anchor

so i have to literally use electron just to use Rich Presence on my account?

dusky oasis

I have no idea but so far seems like it

ancient anchor

😢

{ code: 4000, message: 'Invalid Client ID' } literally my id

wot

dusky oasis

Snek you mean the whole discord folder from appdata/roaming?

or idk xD

sick roost

@ancient anchor Did you try the application ID? That's also called a Client ID.

ancient anchor

yeah my bot id works

i did my id

dusky oasis

it's the application ID from resources

ancient anchor

so will rich presence magically appear or something?

on my bot

dusky oasis

you need to create new app from it(not bot user) and use the given client-id from there

ancient anchor

oh

dusky oasis

I think they stated that bots will not get RPC support

ancient anchor

riperoni

dusky oasis

well idk if you used electron with that code inside and have game recognition on with the correct process selected 😄

ancient anchor

nope i just started it for memes lol

idek how to use this

dusky oasis

😄

ancient anchor

so ¯_(ツ)_/¯

dusky oasis

and I have no idea which discord folder i need to delete from appdata xD

or does it need complete reinstall 😛

ancient anchor

¯_(ツ)_/¯

probably just %appdata%/discord

dusky oasis

quite sure it's not the local one 😄

oh nvm just removing discord cache folder content was enough

coral viper

im getting a TypeError: Object.entries is not a function on the discord-rpc lib using the default example

(probably dumb error im just trying things out)

$ node rpc.js
C:\Users\werel\node_modules\discord-rpc\node_modules\discord.js\src\errors\Messages.js:97
for (const [name, message] of Object.entries(Messages)) register(name, message);
                                     ^

TypeError: Object.entries is not a function
    at Object.<anonymous> (C:\Users\werel\node_modules\discord-rpc\node_modules\discord.js\src\errors\Messages.js:97:38)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\werel\node_modules\discord-rpc\node_modules\discord.js\src\errors\index.js:2:27)
    at Module._compile (module.js:570:32)
tall wasp

are you on the newest node.js stable version?

👀

coral viper

6.11.5, does that matter?

tall wasp

yes it does

update

newest stable is 8.9.1

coral viper

i am always scared of updating 😃

tall wasp

what

why

updating is good

coral viper

for some reason i always break everything 😃

tall wasp

it fixes bugs, improve performance and also brings new features

coral viper

while im at it, i thought 6 was the lts last time i looked

tall wasp

well then you need to debug

8.9.x is new LTS

coral viper

installin

im not dumb 😃

tall wasp

i never said that

Thonk

just update node and you are git gud

because outdated node suck ass

and old node versions are 🤢

coral viper

i remember needing it for some old unmaintained lib 😃

tall wasp

then you should drop that lib anyways

unmaintained libs what uses outdated code are garbage

coral viper

it was garbage but i just really wanted to try it, what was it..

tall wasp

still shit

dont use it

update node

and you are fine

coral viper

im updating already 😃

tall wasp

i would recommend always stay on newest LTS atleast or look what requires a packages has as example mostly every good package is already using async/await and requires atleast 7.6

coral viper
$ node rpc.js
(node:98572) ExperimentalWarning: The http2 module is an experimental API.
(node:98572) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): #<Object>
(node:98572) [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.
tall wasp

Thinkeyes

seems like a Promise was rejected

coral viper

i already got to that point 😃

dusky oasis

also LTS has settable environment variable which you can use to disable that HTTP2 default expose and it also removes the warning from console

I think it's intentional that you get that error 😄 just needs to be fixed

by the one using RPC 😃

coral viper

it crashes after that point

after just hanging

not crashes just stops

dusky oasis

Ready, setting rich presence runs just fine for me after handling the error message as it kindly tells you to do 😃

coral viper

it seems that client.on(ready doesnt fire

client id is your user discord id right the large number string

color going weird

dusky oasis

yup messages going red

coral viper

good now

maybe betterdiscord is interfering?

dusky oasis

nope

there was over 41k ms heartbeat apparently 😄

something funky going on again with Discord servers

coral viper

do you have any idea why it would reject promises?

dusky oasis

yes 😄

wrong login thing

messed up something in code

etc etc

but my best guess is that you're trying to use wrong "token/id" for login 😄

coral viper

default code so messing that up would be hard

which token to i need to use?

user token from rightclick right? long number

dusky oasis

do not convert the app into a bot account as they will not work

coral viper

ok

dusky oasis

but you really should start look into handling errors to actually know what's going on 😄

woven fiber

Do you like my pres

dusky oasis

oh yes senpai xD

woven fiber

xDDD

meager thorn

@dusky oasis

You can have your app as a bot account

It would work fine

dusky oasis

last time I checked those would not get it at all O.o then sorry about that

I mean like Rich Presence on bot account

meager thorn

Yeah my main rich presence

Is in a bot account application

fiery crater

is it possible to give your bot rich presence then?

snow ocean

yes

meager thorn

The bot status a rich presence?

That would be a no

snow ocean

😏

meager thorn

@snow ocean try it yourself

snow ocean

you can but it's ill eagle

meager thorn

You can't in the first place

setPresence wont set it

It will just set it as if he is playing a game without rich presence

snow ocean

you can

didn't you just call me out for using it

meager thorn

Thats selfbot smh

is it possible to give your bot rich presence then?

Bots don't have feature usera have

snow ocean

it was certainly possible with a user account before

im not sure how rpc affected it

meager thorn

users can do it using setPresence

We are talking about bots here

snow ocean

yes

meager thorn

If you try doing it to a bot

The bot will ignore the rich presence and will apply Playing (game)

His question here is that if he can allow his bot to have Rich presence

snow ocean

yeah im pretty sure bots can do it

it's still in the api

meager thorn

Try it yourself

Wouldn't work

carmine mica

manually sending rich presence isn't really allowed

use RPC or don't do it

worthy ginkgo

Guys I've a problem

When I set the Client ID in the cmd it show
(node:13392) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): [object Object]
(node:13392) [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.

tall wasp

im sure you provided incorrect login data

worthy ginkgo

What I had to add in clientID? my client id or of bot?

meager thorn

bots application id

worthy ginkgo

Did it

And then?

meager thorn

Just use it

coral viper

nothing seems to happen for me

do i need to authorize it somewhere?

fiery crater

UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: connect ENOENT /run/user/1000/discord-ipc-0
i keep getting this, does this error happen when providing incorrect login info?

coral viper

yes i think

you need to make a api account and use that client id

but i cant still get it to work

fiery crater

im trying the client id and the bot token, none work, i guess i screwed up somewhere else in the code

coral viper

oh

its ipc so you need to run it on the same pc as your discord

i think

fiery crater

oh ok

thats probably why then

coral viper

just frkin somebody tell my why nothing shows up on my account?

do i need to get approved for something to show or whut?

meager thorn

No

The final product should be a executable

Either using electron or pkg

coral viper

im using the discord-rpc.js

meager thorn

And then add it as a game

coral viper

that shouldnt make a executable

meager thorn

Look at what I said again

coral viper

how in a whuut

meager thorn

That's all Im gonna say

The final product should be a executable

coral viper

either your just trying to get me irritated or you dont understand what im trying

meager thorn

And then add the executable as a game in discord

coral viper

making a executable shouldnt take hours

meager thorn

Or either your just too stupid to acknowledge

What im saying

The final product

Should be a executable

coral viper

just frkin go away i dont think you understand what im trying and i understand what you are meaning

meager thorn

And you add it in discord as a game

fiery crater

i guess its not possible to add them for bots

?

meager thorn

Nope

Using setPresence for bot wouldn't work too

Only users can do it and

It has to be a game

Games are executables

.exe

coral viper

i am not trying to have a game, if i was trying to that i would have used the gamebridge shizzle

meager thorn

You are so ignorant it literally makes you look dumb

Yes

Use fucking electron

coral viper

i feel like thats what you are trying to accomplish

you could have said that, i was using node since literally nowhere is stated to use electron

meager thorn

i literally said that...

Go up and read what I said

coral viper

no you said it created a electron

gvd

meager thorn

Use either fucking electron or pkg

coral viper

just stop

ill give up

fiery crater

you have to make an executable so you can add it to your game detection list in discord

meager thorn

Yes

fiery crater

like the "now playing" thing

meager thorn

Exactly

coral viper

shouldve been documented tho

steady sparrow

Complain to Gus

fiery crater

dude it just released

meager thorn

It should be logical

coral viper

it wasnt 😃

fiery crater

would still be cool if i could add it to a bot :(

oh well

coral viper

there are other hacky ways to do it on a bot 😃

meager thorn

You literally can't do it in bots

coral viper

@night sequoia has a bsic "watching" rich prescence?

meager thorn

setPresence wont work

fiery crater

thats not richpresence

meager thorn

watching is a type

There are types

1 2 3

coral viper

discords making me irritated 😃

meager thorn

You can set them

wanton spoke

Go to setActivity on master docs

You can set types

meager thorn

^

There is playing, listening and watching

coral viper

just stop i understand 😃

meager thorn

Now this channel is for RPC if you have actual questions or need help

This is the place

carmine mica

@coral viper discord only allows processes with a GUI to set rich presence

so you can't just run discord-rpc from the command line

that's what Sam was trying to articulate

@worthy ginkgo what did you do that gave you the [object Object] error

worthy ginkgo

I've fixed

dusky oasis

Ooh master snek :D

I still wonder how Discord cache was attached to RPC missing data xD

void otter

Hello, was waiting for the damn 10 minute timer and during that what you said:

Was exactly what I needed to hear :P

On that note, would discord-rpc from a browser work?

carmine mica

@worthy ginkgo no i need to know

worthy ginkgo

I've used the example on the github

carmine mica

what did you do to trigger that error

please tell me

worthy ginkgo

Idk

carmine mica

@void otter it won't work for rich presence

in browser

worthy ginkgo

I've replaced the rpc with the example on github

carmine mica

for you anyway

void otter

Damn it. Does it support any sort of presence? Also why not for me?

carmine mica

whitelisted

you have to be part of gamebridge

void otter

Ahhhhhh

Damn it >:(

carmine mica

I've been talking to them

about implementing rich presence for web games

and a few other goodies

dw

void otter

I don't see why not, OAuth is there to auth/secure it

Would be an amazing feature

carmine mica

¯_(ツ)_/¯

meager thorn

That would be great

Im making a game using iogrid

Would you be great if i aint forced to use electron

void otter

So wait, Discord-RPC works for rich presence in it's own app, without gamebridge whitelisting, right?

carmine mica

yes

rich presence works without auth

and without needing to be part of gamebridge

it's the only part of rpc you can use without being in gamebridge

void otter

OK, neat. Was a bit confused

This revelation pleases me

woven fiber

Just use electron

An then you can make a html interface, where you can change params

void otter

Just a suggestion, maybe add that info to the discord-rpc readme, seems semi important

carmine mica

it's part of the discord rpc docs

which you should read

woven fiber

I thought command prompt would count as a gui 😦 I know it isn't part of cmd, it is a seperate process

void otter

Yeah I probably should read through all of it :P

woven fiber

I'm never gonna have invites or spectating in my game

How could Make Your Own Rich Pres be authed

unique gust

This is all way more complicated than I first expected, c'est la vie

woven fiber

Do it in c on windows

carmine mica

i made an example electron app

dusky oasis

Woah nice :)

meager thorn

nice

carmine mica

👍🏻

fast pelican

Electron is absolute shit

carmine mica

thanks for your opinion

quick wagon

Thonk

carmine mica

this channel is for support and boosting my self esteem

fast pelican

Piss off

quick wagon

lmfao

carmine mica

-mute @fast pelican 30m being hostile, chill out dude

misty cipherBOT

Muted atf1999#7815

dusky oasis

nobody is forcing to read this channel 😄

ofc people have their own opinion but still no need to attack when someone says something back 😃

dusky oasis

Wellp time to rollback some things xD

"cannot find module ../" this is fun 😃 no idea what I broke again

carmine mica

i updated the example slightly

its an actual game now

dusky oasis

well the issue I had was more that i had to replace that const DiscordRPC

carmine mica

huh

how did you run it thonk

dusky oasis

easy 😄

carmine mica

no

how did you run the example

dusky oasis
carmine mica

bruh git pull

dusky oasis

well for me for whatever reason it didn't like the ../

on discordRPC no idea why 😄

carmine mica

¯_(ツ)_/¯

pull the latest

its pretty legit

dusky oasis

dled the zip as my PC git is screwed atm

to test

carmine mica

eh

dusky oasis

but sec

carmine mica

make sure you npm i then

dusky oasis

oh didn't see that 4min ago commit 😄 had the one from like hour ago

carmine mica

ya i added a full game

well

game

you can call it a game

wanton spoke

oh hecc you added a full electron app

carmine mica

npm run example

ez

dusky oasis

been thinking of starting with electron app someday

but I just dropped it off once I didn't get the exe compiling to work 😃

well hmm something is wrong 😄 the game is running but presence is not there xD

meager thorn

make a game in electron

carmine mica

you have to add the game

this thing

meager thorn

add the game manually

carmine mica

you have to

unfortunately

dusky oasis

ah fck forgot I need to do for that app again

meager thorn

ayy

u got it working

nice picture

wanton spoke

BRO

dusky oasis

ayy 😄

wanton spoke

IM BOOPING THE SNEK

dusky oasis

same

and it wont update on RPC?

xD

wanton spoke

it just did

carmine mica

read the comments

wanton spoke

probably an intense rate limit

carmine mica

it can only update every 15 seconds

dusky oasis

took abit tbh my 1Gb internet laggin again i think

carmine mica

only 1gbps

lame

meager thorn

why is uws so gay

carmine mica

2.5gbps here

dusky oasis

snek only if that speed would be available here 😄

but no 1Gb is the highest atm

carmine mica

yo did you replace the client id

and stuff

i specifically commented not to

notlikethis

wanton spoke

boop the snek goty

meager thorn

next time dont use ur clientid eyesRight

in a example

dusky oasis

insta ban on client-id if using your own? xD

carmine mica
dusky oasis

O.o

carmine mica

:^)

meager thorn

ya cuz they have the same game

I declare this game illegal

and to be prohibited

dusky oasis

now i need to check the code deeper what kind of keylogger you have given me WaitWhat grabs the tin foil

meager thorn

honestly

my rich presence is the best

carmine mica

you don't have any

meager thorn

ya I have it off cuz im fucking around with uws

lemme put it on

carmine mica

don't use uws

meager thorn

im using uws for a game

there we go

wanton spoke

me and gus are playing boop the snek hah

carmine mica

can you guys see my join buttons

wanton spoke

im winning tho

carmine mica
meager thorn

ye

wanton spoke

nah

carmine mica

awesome

meager thorn

you can disable it if you have it as null

wanton spoke

wait what

meager thorn

ofc

carmine mica

sorry dim

you're not whitelisted

meager thorn

roasted

carmine mica

i would have to deploy the app

through discord's team

for them to show up on you

meager thorn
carmine mica

or invite you to my beta list

meager thorn

starttimestamp and endtimestamp do nothing

they are useless shit

idk why I added it into my json

carmine mica

uh

they definitely do something

meager thorn

yeah but not applying it

on my code

wanton spoke

i found an issue with boop the snek

meager thorn

they are just in the json

being useless

wanton spoke

definetely not due to js max int

carmine mica

thats more than maxint

you'll need BigInt

dusky oasis

I just wish that I could grab the whitelist but damn game studio requirements :/

carmine mica
dusky oasis

hmm now I just need to figure out hoow to achieve that "duration" thing 😄

in RPC

meager thorn

duration or elapsed?

just to make sure

dusky oasis

idk at 4am it's the same thing for me xD

elapsed I guess

meager thorn

you would only need startTimeStamp

carmine mica

if you want it to count down

give it an end

if you want it to count up

meager thorn

^

carmine mica

give it a start

meager thorn

if you want to be cool

dusky oasis

Jeez my brains are blendered... from fighting with Twitch API to help friend to get that GTA V RP server code things further on language I have not even touched to RPC with no sleep for last 38 hours 😄

meager thorn

u know

Last time I used RPC

I got spammed because I was causing problems for android client

only had 2 hours of sleep that day

dusky oasis

I got android and the only Issue I have is that RPC is not visible xD even after updating it today

okay apparently epoch unix converter was not correct way to get end time for end variable

xD

meager thorn

date.now() would give you it

but in miliseconds

dusky oasis

tried to get 17.11.2017 and 10am on the converter but wasn't correct method atm xD

carmine mica

you can just pass a date object

and the lib will get it in the correct format

startTimestamp: new Date

dusky oasis

woops I just broke the boop 😄 apparently it didn't like when the boob count was removed from details part xD

well if I don't boop the snek on the game it has no issue xD

meager thorn

aha

dusky oasis

oh wait nvm

dafuq

meager thorn

so I see you actually finally got convinced

that discord wants it in seconds

not miliseconds

eyesRight

dusky oasis

w3schools quick new Date example did not work xD

meager thorn

literally just do

new Date()

dusky oasis

I just hate timestamps/date objects... f'ing timezones... specially when bouncing from UTC +2 and +1

meager thorn

startTimestamp: new Date()

@carmine mica so I see u were finally convinced that discord wants it in seconds

eyesRight

carmine mica

whats a second

meager thorn
dusky oasis

Wellp it doesn't like me xD

carmine mica

whats a timestamps

meager thorn

wow

::

carmine mica

doacola

did you pull latest

meager thorn

remove end

carmine mica

i only just added support for it taking a date object

meager thorn

12 min ago

carmine mica

sure

meager thorn

B)

I wish someone remade iogrid in pixi.js

dusky oasis

hmm now it seems to be updated xD

now to just if I manage to get endtime working

meager thorn

are you trying to do a countdown?

dusky oasis

yup

meager thorn

ye

carmine mica

endTimestamp: some date object

seems pretty ez

meager thorn

ur ez

carmine mica

its true

dusky oasis

well for snek god it is easy 😃

meager thorn

god

i laughed

tbh

dusky oasis

😄

what the ...

carmine mica

four hours left

meager thorn

wew

holy shit you know u just gave me ideas

dusky oasis

endTimestamp: new Date(2017, 11, 17, 10, 00, 00),

meager thorn

I should use this when it comes to game release countdowns

dusky oasis

seems it didn't like to work as I expected it to 😄

meager thorn

17 hours and 10 minutes

dusky oasis

wut

meager thorn

the 17 is the hours

and 10 is your minutes

on your date

wait no I think im wrong

17 is the day

ye

dusky oasis

now it's 6 hours... what the :/

well now i'm closer

dusky oasis

lol what

I hope that I didn't stumble upon a bug xD

apparently 1510927200000 in end time is in 4 hours

but 1510918020000 is 22 hours ...

idk anymore xD even I gave the numbers on eval and I get correct dates etc but RPC is derping them to something else xD

meager thorn

what are you trying to do @dusky oasis

idk why you are trying to go over 3 days

dusky oasis

trying to make countdown as an event starts on 17th 😄

meager thorn

dont think rich presence allows days

dusky oasis

should allow hours :S

meager thorn

it allow hours

not days

dusky oasis

yeah but trying it to show over 24 hours remaining

meager thorn

if it goes over 12 hours probably it owuld go back

yeah

its turning the 3 days to hours

it will do the count down 3 times

untill its done

dusky oasis

you mean over 24 hours? xD

meager thorn

im not sure how rich presence countdown work

dusky oasis

or are you those people living with 12h/clock?

meager thorn

if its 12 hours or 24 hours

dusky oasis

😄

well I can see it going atleast 22 hours

for the countdown

meager thorn

for me it just says 3 hours

never saw anyone going over 11 hours tbh

3 hours is actually the biggest I have seen personally

so

dusky oasis

ye cuz i have the broken timestamp

meager thorn

idk what you are trying to do but like

my assumption is what it will do

is if it goes over 12 hours/24 hours

depending on which type of clock they really have it set to

dusky oasis

check now

meager thorn

it would result it going back to 00:00:00

dusky oasis

21h +

meager thorn

for me u have no rich presence

lol

dusky oasis
meager thorn

there we go

yeah then it goes by 24 hours

if it goes over 24 hours

it will just go back to 00 :00 :00

dusky oasis

kinda weird

meager thorn

not really

kinda makes sense if you think about it

dusky oasis

well lets say you start 48hour maraton

meager thorn

doacola

you gotta realize this is a countdown

and its made for games

we are here using it for non games purposes

I don't believe a game would make their users stay over 24 hours

dusky oasis

to say that to some PUBG / CSGO players xD

meager thorn

pretty sure there are actual regulations when it comes to that

CSGO competetive matches last atleast 30 minutes

not 24 hours....

this is COUNTDOWN for a SINGLE match

not for a whole session

you can't estimate someones session

unless you go from countdown

to doing elapsed