#archive-rpc-help

21942 messages · Page 4 of 22

crude pollen

it works great

smoky scroll

naisu

crude pollen

how do i change the pictures btw

    smallImageKey: 'snek_small',
    partyId: 'snek_party',```
carmine mica

make your own app

smoky scroll

u go into ur developer con-

carmine mica

meh isa can probs explain it better than me

crude pollen

ok its open

smoky scroll

then u make it as if u were making a bot almost, the app name though is u game status

then when u make it, u scroll down and enable rich presence

then u add pictues. the name is what u use in the key fields

text is just what show up when u hover

and then u also need the client id

which u have to use cuz the assets are attached to it

in the example, its at the top i believe, u replace that

crude pollen

thanks ok i did that

this is what i have

    state: 'slithering',
    details: '🐍',
    startTimestamp: Date.now(),
    endTimestamp: Date.now() + 1337,
    largeImageKey: 'gib_steve',
    smallImageKey: 'snek_small',
    partyId: 'snek_party',
    partySize: 1,
    partyMax: 1,
    matchSecret: 'slithers',
    joinSecret: 'boop',
    spectateSecret: 'sniff',
    instance: true,
  }).then(console.log);
});```

but the large image is not showing in my RP

the client ID was updated for the new app i just made

smoky scroll

it wont show up if u dont have the client id accurate

crude pollen

and the asset is uploaded for gib_steve

smoky scroll

is it also a large image

as in u can either upload large or small asset

crude pollen

its large

smoky scroll

saved?

crude pollen

yes GREAT SUCCESS! All your edits have been carefully recorded.

smoky scroll

did u make it a bot application

im not sure if thats needed

carmine mica

you don't need a bot user

smoky scroll

oh

idk then

whats going on hereeeee

go to general unless you have a question

crude pollen

yep i made a bot as normal

and enabled rich presence on it

smoky scroll

yeah i have no idea... thats wthe process i did.. @carmine mica help

carmine mica

i think sometimes it takes time to update and stuff

not quite sure

crude pollen

ok let me restart canary

carmine mica

thats not what i meant

crude pollen

yeah but i read earlier that restarting canary helped with other libs

i thought it was worth a shot

carmine mica

dunno where you read that

crude pollen

i think that same spotify rpc mod from earlier

but its irrelevant

i changed to the default and it updated instantly

smoky scroll

mmm only thing i can still think of is wrong client

crude pollen

hey it works now

i think i knew whats wrong

i only added one asset, and left the small asset as the default file which didnt exist on this clientid

i added both and it seems to be working

thanks so much for your help guys

smoky scroll

oh, TIL

craggy boughBOT
woven prism

facepalm

smoky scroll

Is it possible to have Watching (RPC)?

Or Listening

scarlet aspen

Only with selfbot

smoky scroll

Yeah I know

Wait so it's possible?

tall wasp

but forbidden

selfbots are bannable

craggy boughBOT
gilded geyser

are there any guides to start with RPC?

smoky scroll

you can use snek's example

gilded geyser

on github?

smoky scroll

yup

boreal atlas

Is there a way to make the rich presence "Watching" or "Listening" instead of "Playing" with RPC?

gilded geyser

@smoky scroll im having a hard tiome understanding how o even start the RPC file

boreal atlas

I've been able to achieve a simple "Watching" status with just discord.js, but I'm not sure how to do it with RPC

smoky scroll

The example shows you how

You can't use watching or listening with rpc

boreal atlas

heck

Man, I saw someone with the watching status + rich presence at the same time. I'll ask them about what they're using

smoky scroll

Not rpc

Violating tos

You can easily do it with a selfbot but yea.

gilded geyser

oof

set precense 2

jade flame

i wanna ask for help through this entire thing but i don’t wanna feel like a nuisance lol

wanton spoke

ok dont

gilded geyser

do you need to require discord.js whne using discord-rpc?

carmine mica

no

gilded geyser

ok imma ask my questio here

i keep getting this error when booting my rpc app

carmine mica

are you trying to do spotify?

gilded geyser

wait i need to change some port dont i?

carmine mica

that error is for connecting to the spotify client

i won't give support for that

byeeeee

gilded geyser

oK

I know my error and how to solve it

thanks anyway

hybrid harbor

u using spoticord @gilded geyser

?

craggy boughBOT
oblique gorge

That issue has a misspell on his socket emit

But ceebs telling him

UpateRequest

OMEGALUL

gilded geyser

@hybrid harbor No

tall wasp

No its the ClientID of your application

smoky scroll

Wow

frail creek

does Discord-RPC (extension) only work on mac? After when im trying to use it on Windows im getting timeout error?

Im using the extension from the example

tall wasp

no it also works on windows

frail creek

Wird im getting error:
connection timeout
at setTimeout (C:\mcdivision\node_modules\discord-rpc\src\Client.js:109)

tall wasp

i guess that could mean your internet isn't stable

i would ask gus about that blobshrug

frail creek

Still wird becurse my mac is on same internet and cable and that works fine 😃

gus?

tall wasp

ThinkFish

yea Gus made this lib

@carmine mica

frail creek

private or here u think?

tall wasp

here lol i already pinged him

wait until he respond

frail creek

Okay thanks 😃

carmine mica

@frail creek use the ipc transport

and make sure your discord client is open

ばかね

frail creek

im using const rpc = new DiscordRPC.Client({ transport: 'ipc' });

@carmine mica

carmine mica

do you use multiple discord clients

frail creek

Nope 😃

carmine mica

can you show me the full error

frail creek
carmine mica

i can't repro

frail creek

what?

carmine mica

i can't reproduce

frail creek

Rip :/

carmine mica

using template literals and concatenation though

thats pretty horrible

`@${Data.username} | ${Data.likes}`
`Together with ${amount} other`
frail creek

still wird that it works on mac but not win

smoky scroll

how wcan yuo chang your rpc images

after an interval

nvm

tall wasp

thonk

smoky scroll

hiii

ancient anchor

byeee

marble sapphire

Hi

ancient anchor

No u need node

marble sapphire

What is that

ancient anchor

I can't

smoky scroll

Something you should learn about before attempting to rpc

ancient anchor

^

marble sapphire

seriusly

ancient anchor

yes

marble sapphire

This?

ancient anchor

node js

Jfc

marble sapphire

ok

craggy oyster

Is there a way that i can put my discord-rpc code on a dedi? I assume not because it grabs ya app's info and that's not on my dedi, but just curious ;p

smoky scroll

No it has to run where your client runs

ancient anchor

Nah because you need to set it as a game

marble sapphire

And what when I istall it?

craggy oyster

Yeah, as i tought

smoky scroll

Look agent you have a bit of learning to do and nobody here is willing

?guide

pure onyxBOT
smoky scroll

Look at this for basic startup

marble sapphire

ok thanks 😛

ancient anchor

They saw someone with it in another server and all of a sudden is fantasising over it

smoky scroll

Yeah lol

craggy oyster

xD

plush pumice

i keep having problems with node-gyp and building, even with windows-build-tools installed, rebooting, reinstalling node and npm, has anyone had some similar problems?. The reason i'm asking here is that discord-rpc requires some building :/

smoky scroll

Never had any issues installing and installing doesn't have anything to do with this channel so

craggy oyster

do ya mean discord-rpc by gus?
that doesn't require any of that

smoky scroll

Well you need to install

Idk about building tho

plush pumice

alright, i'll move somewhere else

smoky scroll

why did you post that here

silk dawn

i'm usually automatically in general sorry

smoky scroll

👌🏻

smoky scroll

How do you get your self rpc client id

carmine mica
smoky scroll

Wat

carmine mica

aw the redirect was removed

unfornuate

smoky scroll
carmine mica
smoky scroll

Noo

your own rpc id

carmine mica

what does that mean

smoky scroll

like what you’d use for discord rpc

yes its from that page lol

carmine mica

yea

thats on the application page

smoky scroll

it is? Owo

carmine mica
smoky scroll

no we're both lying to you

ohReally

no

carmine mica

what is it with discord and bold text fetish

smoky scroll

thats a bot

not my own application client id

carmine mica

HI I FUCKING WROTE THE RPC LIBRARY

I THINK I KNOW HOW IT WORKS

smoky scroll

no you obviously know nothing about it

So there’s not a way to get rich presence on your own account ?

carmine mica

yea

you use an application

for the assets

you need to learn how this works buddo

smoky scroll

and the client id is what you need

I’m growing a tumor as we speak

so are we

meguFace

So you nEed to use a bot applications client Id to get rich prescience on your own @vfo8my

accouny

carmine mica

yes

smoky scroll

wtf

carmine mica

like i said

you should learn how it works

smoky scroll

did it change, legit I got my own application client Id from a url, snek told me

carmine mica

?

smoky scroll

I’ll just read past messages 😑

carmine mica

here look

the assets you upload to the application

are used for images

the application name is used as the game name

etc

smoky scroll

I’m really confused

carmine mica

if you run the example in the repo, you'll start playing BOOP TEH SNEK

smoky scroll

why do you need to use a bot app to get rich presence on your own account

cuz its the game

that ur playing

carmine mica

its not a bot app

bot accounts are a subset of oauth2 applications

solid pasture

The existence of an application does not imply the existence of a bot.

smoky scroll
carmine mica

no

what even

why would you think that

smoky scroll

you don’t have to be rude

carmine mica

no like legit

why would you think that

thats not an easy url to find

who told you that

solid pasture

xD

smoky scroll

microwave can you not I’m trying to talk to snek

Mirowave

solid pasture

I, too, wonder these things.

smoky scroll

Thx

carmine mica

neet

now

you should look at the example

and the actual discord rpc docs

smoky scroll

Yea I am

carmine mica

rpc is used for an application to control the local client

the application is authenticated as one of your oauth2 applications

smoky scroll

Ok so I have to make a bot app

carmine mica

not a bot app

an oauth2 app

smoky scroll

wa

carmine mica

they aren't bot apps

these are oauth2 applications

smoky scroll

Yea that’s what I meant

carmine mica

bot users are a subset of that

smoky scroll

sorry

carmine mica

rich presence is also a subset of that

smoky scroll

I got it working btw @carmine mica thx

carmine mica

👍🏻

fast pelican

i just read this whole past convo. made me chuckle lol

crude pollen

hey does anyone kow why my rp status has that little icon next to it

steady sparrow

To point out that someone has RP instead of just a normal game

crude pollen

Ok thanks

whole sand

what client id do you use for rpc

smoky scroll

the client id of ur application

wanton spoke

the bots

whole sand

does it have to be a bot user?

smoky scroll

no

whole sand

im using that client id

but it tells me invalid client id

carmine mica

did you enable rich presence assets

whole sand

yes

carmine mica

did you click save

whole sand

yes

should i try with a new user

carmine mica

showcode

whole sand
const DiscordRPC = require("discord-rpc");

const parse = require("parse-duration");

const moment = require("moment");

const openTimestamp = new Date();

DiscordRPC.register('387761353743400973');


const rpc = new DiscordRPC.Client({ transport: "ipc" });

if (!rpc) return;

rpc.on("ready", () => {

    console.log("Logged in with RPC!");

    rpc.setActivity({
        details: "A Multi-Functional Discord Bot",
        state: "Website Coming Soon",
        largeImageKey: "image1",
        largeImageText: "TurtleBot",
        instance: false,
        startTimestamp: moment(openTimestamp).add(parse("-0s"), "ms").toDate()
  });

});

rpc.login('387761353743400973').catch(console.error);
carmine mica

two libraries for new Date()

lol

whole sand

what?

wanton spoke

what are you doing with this line

  1. why check something you just defined
  1. return isnt in a function
carmine mica

technically it will work

because node executes code in a wrapper

but you should remove it

wanton spoke

oh yeah that

whole sand

i did

wanton spoke

are you trying to set the bots presence?

whole sand

no

im trying to set mine

it keeps telling me invalid client id

carmine mica

weird

whole sand

ill try making a new app

not even the new app wants to work

whole sand

rip rpc for me

whole sand

Is there any authorization I have to do before

I start rpc or what?

umbral heron

I think you need to make an Oauth2 request

Er

Get an access token

wanton spoke

no you dont

umbral heron

Oh...?

wanton spoke

if you're doing ipc transport, you dont

umbral heron

Ah

smoky scroll

Is there a discord rich presence updated in python

updater

steady sparrow
fast pelican

^

smoky scroll

🤔 a guy told me that using rich presence is bannable because its using a self bot. Is this correct?

no lel

he's an idiot

rich presence is done through rpc

it has nothing to do with the API

ok good

ashen epoch

how to set my own rpc?

plush pumice

there are some tools which do that, but you could write your own

ashen epoch

can i see examples?

smoky scroll

i made an npm package to do it but apparently its not working if you dont have git installed or something

ashen epoch

discord-rpc?

smoky scroll

register-scheme

damn it

ashen epoch

why does it need git?

smoky scroll

idk

ashen epoch

Can you try do no need git?

smoky scroll

it might not

that is link

plush pumice

there's not reason not to have git thinkLul

ashen epoch

On discord-rpc

smoky scroll

just try it without git it should work

ashen epoch

it says me need git

😭

Well, how 2 install it?

smoky scroll

have you done it yet @ashen epoch

ashen epoch

noe

smoky scroll

then do it if you want it to work lol

ashen epoch

ik

@smoky scroll made it work

but how to set an image?

smoky scroll

nice

you make an application (not a bot) get the id and upload assets

then use the asset names as the lrgImgKey and smlImgKey

ashen epoch

Oh ok

so in the app? that's where i set it?

smoky scroll

yeah

ashen epoch

@smoky scroll added an image, uploaded on asset

y not show?

smoky scroll

what size wa the immage

did you upload it as a small or large one

ashen epoch

small

smoky scroll

ok

then

replace "oof"

with the asset name

ashen epoch

ok

@smoky scroll like this?

richPresence('388636919086579723',"Testing", "LOOL", "test", "Javascript");```
smoky scroll

umm hang in ill chack

you need the extra 2 aswell

just do

richPresence('388636919086579723',"Testing", "LOOL", "test", "Javascript",null,null);
ashen epoch

ok

@smoky scroll ```js
(node:4352) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejec
tion id: 1): Error: child "activity" fails because [child "assets" fails because
[child "small_image" fails because ["small_image" must be a string]]]
(node:4352) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre
cated. In the future, promise rejections that are not handled will terminate the
Node.js process with a non-zero exit code.

smoky scroll

umm

hang on

richPresence('388636919086579723',"Testing", "LOOL", "test", "Javascript","notReal","NotRealAswell:);

wait

richPresence('388636919086579723',"Testing", "LOOL", "test", "Javascript","notReal","NotRealAswell");
ashen epoch

still no image 😭

smoky scroll

hmm

wait ik why

do this

richPresence('388636919086579723',"Testing", "LOOL", "NotReal", "NotReal", "test", "Javascript");
ashen epoch

still none

smoky scroll

wooot

screen shot youre assets page

wait is the asset name test

make sure the app id is the one you out in

ashen epoch
smoky scroll

then do

richPresence('388636919086579723',"Testing", "LOOL", "NotReal", "NotReal", "javascript", "Javascript");

you got the asset name and the text mixed up

ashen epoch

ok

smoky scroll

huh no image

ashen epoch

ikr

smoky scroll

is the apps id 388636919086579723?

try upload a large one then see

@ashen epoch

ashen epoch

ok

smoky scroll

then send me a screen chot of youre assets

ashen epoch

wait

smoky scroll

k now do

richPresence('388636919086579723',"Testing", "LOOL", "javascript2", "js", "javascript", "js");
ashen epoch

omg works 😄

thanks

smoky scroll

😃 np

ashen epoch

add friend?

smoky scroll

i think you had to have the large icon first

oke

carmine mica

what the fuck

@smoky scroll can you not

shill your shitty horrible packages here

smoky scroll

polluting the npm registry with shitty packages

NotLikeThis

carmine mica

this is such a bunch of shitty code

and it has npm deps to url and path

it doesn't bubble errors up

it doesn't keep state

it has two useless requires

it has a random if condition that will never be used

it pollutes stdout and stderr

@smoky scroll can you just not ever come here again

smoky scroll

O h

D a m n

Ok bye

carmine mica

@Kutsara#8047 you should drop that easy-rich-presence dep

heck

craggy boughBOT
smoky scroll

HaHa Im BaCk

GeT aNnOyEd

YoU cAnT sToP mE

carmine mica

-warn @smoky scroll this is a warning

misty cipherBOT

Warned OOF#3764

smoky scroll

No U

I wIlL sTaY hErE iF I WaNt

carmine mica

-mute @smoky scroll 10m spam in channels

misty cipherBOT

Muted OOF#3764

smoky scroll

HeHeHeHe I’m back

Y’all are gay

tall wasp

@carmine mica just ban him

please

carmine mica

everyone get out of this channel

smoky scroll

Just soft ban me so it clears

@carmine mica

Or a regular ban

north rain

hello @smoky scroll

smoky scroll

Oh hey I remember hou

Hey

north rain

waddup

smoky scroll

Something

Ppl being mean cause of my code 😦

north rain

lol they gay

smoky scroll

Yeah

carmine mica

if you decide to shill your code in my channel

i'm gonna get pissed

smoky scroll

Ban me so it goes away

Lol imma leave

cosmic stag

smh

smoky scroll

rich presence client?

oblique gorge

remote procedure call

smoky scroll

rich presence client.

oblique gorge

rectal prostate clapping

smoky scroll

u rite

retards pretending to code

velvet goblet

Hey, what about typings ?

carmine mica

what about them

whole sand

beta 5 seems to work for me

thanks

is there a problem with using it on ubuntu

its stuck on checking installable status'

wanton spoke

are you trying to get rpc running from a vps?

whole sand

yes

wanton spoke

and have it show up on your account?

whole sand

its shows up

when i host it on my pc

smoky scroll

Cuz that's how you run it

wanton spoke

because rpc is a thing running on your pc tied to your account

it wont work on a vps

whole sand

oh

is it could

guess ill use pm2

quick wagon

wut

obtuse saffron

i get this error when i try to run discord-rpc example code:

C:\Users\user\Desktop\Test>node app.js
C:\Users\user\Desktop\Test\app.js:1
(function (exports, require, module, __filename, __dirname) { ��c
                                                              ^

SyntaxError: Invalid or unexpected token
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:599:28)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Function.Module.runMain (module.js:676:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3

C:\Users\user\Desktop\Test>

code

const { Client } = require('discord-rpc');

const clientID = '187406016902594560';
const scopes = ['rpc', 'rpc.api', 'messages.read'];

// This demonstrates discord's implicit oauth2 flow
// http://discordapi.com/topics/oauth2#implicit-grant

const params = new URLSearchParams(document.location.hash.slice(1));

const accessToken = params.has('access_token') ?
  params.get('access_token') : localStorage.accessToken;
localStorage.accessToken = accessToken;

if (!accessToken) {
  // Redirect to discord to get an access token
  document.location.href = `https://discordapp.com/oauth2/authorize?response_type=token&client_id=${clientID}&scope=${scopes.join(' ')}`;
}

const client = new Client({ transport: 'websocket' });

client.on('ready', () => {
  console.log('Logged in as', client.application.name);
  console.log('Authed for user', client.user.tag);

  client.selectVoiceChannel('81384788862181376');
});

// Log in to RPC with client id and access token
client.login(clientID, { accessToken, scopes });

there is something i need to change or replace ?

<@&222087754366844928>

blazing eagle

Looks like you have some random unicode before your first const

obtuse saffron

i dont have nothing there

i just did
Ctrl+A
Ctrl+C
Ctrl+V

thats mean all the file is here

there is 30 lines

and i get this code from the website on the welcome page

i open another file and paste the code again (same code like the one on the welcome page of discord-rpc) and get new error:

C:\Users\user\Desktop\Test>node test
C:\Users\user\Desktop\Test\test.js:9
const params = new URLSearchParams(document.location.hash.slice(1));
               ^

ReferenceError: URLSearchParams is not defined
    at Object.<anonymous> (C:\Users\daniel\Desktop\Test\test.js:9:16)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Function.Module.runMain (module.js:676:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3

C:\Users\user\Desktop\Test>
wanton spoke

uh

URLSearchParams is a browser thing

obtuse saffron

idk what is this i am new in discord-rpc so i just copy the code from the example page and paste it into a js file

and try to run this

idk if i need to change something

solid pasture

It's a browser example, not a Node example.

carmine mica

you can't use the browser example

even if you run it in a browser

solid pasture

Oh, wow.

carmine mica

you have to be whitelisted

@obtuse saffron click on "rich presence example"

obtuse saffron

where ?

gilded geyser

did lucario leave

what

obtuse saffron

on the website ?

hollow palm

o

my

dods

carmine mica
hollow palm

l33t

carmine mica

stop

obtuse saffron

ok

i am in

hollow palm

hmm

I haven't made a bot in a while,

rpc...

obtuse saffron

@carmine mica what next ?

mention me if you reply

oh lol you are snek 😃

i use your package

you did a good job with it

smoky scroll

😃

Easy and good rpc

carmine mica

???

plush pumice

ok

pulsar condor

where would I get the access token and the client id?

carmine mica

you don't need an access token for rich presence

pulsar condor

Ok

carmine mica

client id is from the application you want to use

plush pumice

read docs and example

pulsar condor

I'm using discord canary

carmine mica
pulsar condor

o

carmine mica

those applications have client ids

add assets to one of them

use it

pulsar condor

how would I get @pulsar condor like my profile to have rich presence

carmine mica

huh

nova silo

thinkLul

open flare

ohhhh so for rpc you need to use that as an id. at first I thought you used userID 🤦

carmine mica

no

nova silo

Nope, App ID

open flare

yeah ik app id

pulsar condor

so I can't make my profile have rich presence?

carmine mica

you can

simps stop

pulsar condor

...

I forgot

I gotta login to my account on the browser

gotta go grab my phone brb

k

back

OOOOOOO

nova silo

Okie dokie, I'll contribute instead, lol. On the page Gus linked, you need to click on one of your applications and scroll down, find Rich Presence and press the sparkly blue button that says 'Enable Rich Presence'. Once you have done this, you should then upload some Rich Presence Assets, these will be used for the images that are shown on the RPC on your profile.

Once you're set up from there, copy the Client ID from the App Details at the top of your Application page on the Discord website.
The Client ID is the ID that will be used to register the Discord RPC with.

const d_rpc = require("discord-rpc");
rpc = new d_rpc.Client({ transport: "ipc" });

From here you can then set the activity of your RPC.

    rpc.setActivity({
        details: "the title of the rpc",
        state: "the status of your rpc",
        largeImageKey: "some_asset_you_uploaded",
        largeImageText: "hover text for large image",
        instance: false,
        startTimestamp: 0
  });
carmine mica

you forgot

transport: ipc

thats very important

open flare

^

nova silo

my bad, i did hesitate when writing

but then i was like nah thats it iirc

pulsar condor

I'm still reading through it ;p

Oh

andd

For one of my assets it said this

...

not that

this

nova silo

lmao

pulsar condor
nova silo

yeah it's an asset name

just put "icon"

or something

pulsar condor

ok

nova silo

Then when you setActivity, you'd reference it for this Object key:

largeImageKey: "icon",
open flare

where do I put the ID

for the app

pulsar condor

ok

nova silo

When you register the rpc, following my example:

d_rpc.register(APP_ID_HERE);
pulsar condor

wait

I lost where you would get the rpc from...

nova silo

What do you mean?

carmine mica

simps you're going 10000mph too fast

pulsar condor

^

carmine mica

he doesn't even know what register means

i doubt you do either

nova silo

i suck at helping

carmine mica

basically

const { Client } = require('discord-rpc');
const rpc = new Client({ transport: 'ipc' });

rpc.on('ready', () => {
  rpc.setActivity({
    details: 'hi',
  });
});
pulsar condor

and I presume that I would put that inside of my bot's code?

carmine mica

no

this has nothing to do with bots

bots can't use rpc

pulsar condor

so how would I run it?

carmine mica

it runs on your local computer

pulsar condor

gosh, I sound like a total idiot...

I mean what lib would I use?

carmine mica

for what

pulsar condor

running the script

carmine mica

you run the script on your pc

it connects to your local discord desktop client app

pulsar condor

so i would run it

and it would just show up like a game that supports rich presence?

carmine mica

yes

pulsar condor

o

ok

carmine mica

you can also use the npm module uh

discord-rich-presence

pulsar condor

I would download that?

carmine mica
const client = require('discord-rich-presence')('180984871685062656');

client.updatePresence({
  state: 'slithering',
  details: '🐍',
});
plush pumice

easy-rpc is even simpler

carmine mica

easy rpc is a horrible module

you should never use it

plush pumice

oh

carmine mica

it has so many issues

and the api is horrible

pulsar condor

I still have no clue what to do

open flare
const d_rpc = require("discord-rpc");
const rpc = new d_rpc.Client({ transport: "ipc" });

d_rpc.register("389114458904985620");

rpc.setActivity({
  details: "subscribe pls",
  state: "i need to feed my children",
  largeImageKey: "yt-pic-large",
  largeImageText: "YouTube.com/MegabyteYT",
  instance: false,
  startTimestamp: 0
});

would this work

carmine mica

uh

no

you didn't log in

open flare

oh

carmine mica

you don't need register

pulsar condor
carmine mica

uh

remove all the stuff above const client =

pulsar condor

oke

open flare

so what do I add
rpc.login()
Or something?

carmine mica

ye

smoky scroll

theres example code on the repo

carmine mica

rpc.login(id)

smoky scroll

HyperMegu

pulsar condor
carmine mica

hey isa guess what

@pulsar condor yes

pulsar condor

thats it?

carmine mica

easy-rich-presence has 180 downloads in the last day lol

open flare
const d_rpc = require("discord-rpc");
const rpc = new d_rpc.Client({ transport: "ipc" });

d_rpc.register("389114458904985620");

rpc.setActivity({
  details: "subscribe pls",
  state: "i need to feed my children",
  largeImageKey: "yt-pic-large",
  largeImageText: "YouTube.com/MegabyteYT",
  instance: false,
  startTimestamp: 0
});

rpc.login(389114458904985620);

?

pulsar condor

just run that

carmine mica

piece of shit

@open flare you have to wait for

open flare

oh yeahhh

on ready

carmine mica

ye

pulsar condor

hm

so I would replace your bot client id for mine right?

smoky scroll

@carmine mica which one is that

theres like 2 shitty ones

carmine mica

huh

the one thats just a function

with like 300 args

smoky scroll

oh the russian one?

carmine mica

and it creates a new client

every time you run it

smoky scroll

oh the other 1

GG

carmine mica

its 120% bad

smoky scroll

@pulsar condor its the client id of the application u make

ya i noticed

pulsar condor

yea

ok

open flare
const d_rpc = require("discord-rpc");
const rpc = new d_rpc.Client({ transport: "ipc" });

d_rpc.register("389114458904985620");

rpc.on('ready', ()=>{
  rpc.setActivity({
    details: "subscribe pls",
    state: "i need to feed my children",
    largeImageKey: "yt-pic-large",
    largeImageText: "YouTube.com/MegabyteYT",
    instance: false,
    startTimestamp: 0
  });
});

rpc.login("389114458904985620");

[nodemon] app crashed - waiting for file changes before starting...

why no worky worky

carmine mica

¯_(ツ)_/¯

you should run it without nodemon

while developing

open flare

ok

carmine mica

oh

startTimestamp: 0

is probably the issue

open flare

can I just remove startTimestamp then?

carmine mica

ye

everything is optional

smoky scroll

doesnt it break if you dont insert a small image with the big one

carmine mica

no

everything is optional

smoky scroll

oh, well it was what happened with the other guy some time ago i think

carmine mica

uhm

if you don't have a big image

and you set a little image

neither will show

smoky scroll

maybe it was that

carmine mica

but that isn't erronous

open flare

every time I run it it does this :V

carmine mica

do you call login

smoky scroll

rich presence client support is here right?

open flare

yeah

carmine mica

@smoky scroll yes

smoky scroll

kek ok thanks gus

carmine mica

npm i discord-rich-presence

smoky scroll

but i cant get the example working

carmine mica

which example

open flare

ok I found what was wrong

it was because of the register thing

carmine mica

@smoky scroll how are you running it

pulsar condor

hm

smoky scroll

npm run example

carmine mica

and what happens

smoky scroll

literally nothing

carmine mica

?

smoky scroll

exactly what angery's is doing

pulsar condor

tis not working

carmine mica

are you guys on windows

pulsar condor

yet it doesn't show up on my profile

carmine mica

oh

yours and angrey's did different things

@smoky scroll it should open a new window

with a snake on it

pulsar condor

hm

yiff

I saww that

carmine mica
pulsar condor

wut

carmine mica

@smoky scroll

pulsar condor

you're on mac

carmine mica

yes

smoky scroll

there is an emoji in your link Thonk

but

ill try redownloading

carmine mica

it should preview

in the client

plush pumice

woah this works :o

open flare

what does this mean :(

(node:3312) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): #<Object>
(node:3312) [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.
pulsar condor

wait

where'd you get that example?

carmine mica

angrey

can you uh

process.on('unhandledRejection', console.error);

paste that in your code

open flare

ok

smoky scroll

should i get it via devsnek/discord-rpc or discord-rpc

carmine mica

at the top

open flare

fuck and now it works

carmine mica

not the bottom

oh ok

lol

smoky scroll

gus

should i get it via devsnek/discord-rpc or discord-rpc

plush pumice

doesn't matter @smoky scroll

smoky scroll

u never know oliver

gus could have secret changes

plush pumice

there's only one branch: master

carmine mica

it does matter

plush pumice

oh mb

carmine mica

one installs from npm

smoky scroll

kek

carmine mica

one installs from github

plush pumice

...

carmine mica

get whichever you want

plush pumice

doesn't change the final outcome

carmine mica

it definitely does

open flare

heck yay

carmine mica

npm has tagged releases

plush pumice

doesn't npm fetch from github?

carmine mica

no

lol

plush pumice

oh, til

smoky scroll

tidl

pulsar condor

aw

how do you do dis

smoky scroll

y cant we rename this channel rich-presence-client gus

carmine mica

no

smoky scroll

.>

pulsar condor

xd

carmine mica

rpc doesn't stand for rich presence client

pulsar condor

^^

smoky scroll
pulsar condor

.

.

.

um

you could consider turning off your theme on better discord before you show us your discord client....

carmine mica

?

smoky scroll

y?

pulsar condor

I thought somewhere it said it was bannable

carmine mica

from discord

not this server

pulsar condor

yea

o

and

yiff

can I have your example?

smoky scroll

its on his repo HyperMegu

pulsar condor

so wwheres his repo?

smoky scroll

the rpc repo

holy shit

i gotta be in node_mods/discord-rpc rite?

r u shitposting

actually u are

please stop

im not

honest lewd

then where did you pull node_mods and the idea of being in there from

pulsar condor

me?

smoky scroll

this

😭

generally being tired

nothing in there tells you to go to node modules

angryDogNoises

carmine mica

run npm install

smoky scroll

still doesnt work

wanton spoke

npm i -g electron

carmine mica

no

definitely don't do that

wanton spoke

sure

smoky scroll

not gonna

carmine mica

running npm install

in the directory you checked out

will be enough

wanton spoke

installs dev dependencies

smoky scroll

first thing i see

pulsar condor

what

I just ran the example

and it didn't wwork

smoky scroll

i have python installed 😭

plush pumice

had that error too, was never able to fix

smoky scroll

fuck mobile >.>

carmine mica

you need python 2

not python 3

plush pumice

i ignored the error, and it worked anyway

wanton spoke

that seems like a fatal error Thonk are you sure?

carmine mica

it could be fine

smoky scroll

this is awkward

wanton spoke

could be

carmine mica

depending on the build order

plush pumice

100%, look aat my profile

wanton spoke

ok do what oliver said

run it regardless of the error

smoky scroll

dont know how

¯_(ツ)_/¯

plush pumice

you can try, but eh

wanton spoke

npm run example

holy heck

smoky scroll

same thing m8

pulsar condor

😮

yay

tis work

but

How do I make it instead of the example go to my thing

carmine mica

well

plush pumice

can i update my status every second?

carmine mica

no

@pulsar condor you're expected to be able to apply the concepts in the example yourself

pulsar condor

soooo

plush pumice

how do some people update it every second like: 00:01 has elapsed?

pulsar condor

what if theres a person who came here to have a custom rich presence wwith no knowledge of any way of coding at all?

plush pumice

that person should at least learn javascript first

pulsar condor

eh

you're beating the point

carmine mica

you should know js

pulsar condor

I do

carmine mica

before you try to use it

smoky scroll

@plush pumice when u provide a start Timestamp it increments on its own

example shows this

plush pumice

oh, must be an issue with discord-rich-presence

smoky scroll

working fine for me cirCup

plush pumice

huh

using startTimestamp: Date.now()?

smoky scroll

try new Date()

plush pumice

worked, thanks 👍

smoky scroll

np

pulsar condor

,

welp

I customized it

but

ugh

smoky scroll

can you avoid treating support channels like your personal diary

thanks

pulsar condor

sorry jeez

carmine mica

december 9, 2017
as i continue trecking along the river,
i found what appeared to be the remains of a lucario.

i wept.

-- gus

smoky scroll

well thanks gus, still isnt working, but ive been having issues with everything lately via npm so im just gonna see if it works after i reinstall npm, if it does i wont be back

banning gus rn

carmine mica

its my diary

u banne

who gave you permission to read it

i should banne u

pulsar condor

hm

it seems I have figured it out

smoky scroll

tadaVue

pulsar condor

Now

all I have to do is get rid of the windoww that keeps popping up, right?

smoky scroll

thatll close it thonk

pulsar condor

yea

smoky scroll

oh, code-wise, if you want, sure.

pulsar condor

it won't mess anything up right?

smoky scroll

no

pulsar condor

oke

lemme try it

brb

.

carmine mica

.dip

pulsar condor

ay

worked

no more window and I have rich presence

😄

thx so much for your help

craggy boughBOT
pulsar condor

is that an update?

o

no its a commit

oke

anyways bye thanks so much

welp

here I am again

asking for help because I can't seem to get the applicaton "electron" to go away

carmine mica

?

electron is part of the example

if you don't want it don't run it with electron

pulsar condor

then I can't run it?

wait

huh?

I just quit electron and it still works perfectly fine...

carmine mica

k

bye den

pulsar condor

o

wait

nope

just died

near lynx

How do i set game name with rpc? Or is it application name?

pulsar condor

application name

Ok

one last thing and then i'll be out of your hair

is there a way to make myself watch something like my bot?

open flare

Yes, using selfbots

pulsar condor

liek without a selfbot

like*

cunning vector

the local rpc running on your machine doesn't support activity types

pulsar condor

aww

that sucks

I wwas hoping to make myself watching adorable kittens

cunning vector

I haven't tried using a selfbot in tandem with an rpc app though

pulsar condor

I'm never gonna use a selfbot

xD

mint dew

guys ive tried googling everywhere and I already asked around in many places and couldnt understand how to Rich Presence with RPC

could someone give me a working example?

tall wasp

there is an example in the github

iirc there are even 2

mint dew

link to the github I just got it from npm install

nvm I got it

tall wasp

i mean you can use google for that

im not google for you anyways

ThinkShrug

mint dew

eh nvm I found an easier module

crisp yacht

thonk

carmine mica

@mint dew what module

mint dew
carmine mica

don't use that

mint dew

why

carmine mica

it will break shit

it leaks memory and pollutes your console with random messages

mint dew

I just used it and its working perfectly OwO

carmine mica

yea

but if you leave it on for a while

your computer will run out of memory

mint dew

Im not hosting it on my PC WaitWhat

carmine mica

it only works on your pc

thats how rpc works

plush pumice

LOL

carmine mica

if you need an easy module

its recognized officially by the discord devs

mint dew

ok so uhm

carmine mica

and its super easy

mint dew

how do I use that

carmine mica
const client = require('discord-rich-presence')('180984871685062656');

client.updatePresence({
  details: 'owo',
});
crisp yacht

look at the repo?

plush pumice

read

crisp yacht

it has examples

mint dew

I put it on a file in my pc then I open the node console on that file and im good?

carmine mica

yea

mint dew

ok will try

carmine mica

i really need npm to unpublish easy-rich-presence

its so horrible

plush pumice

did you make that?

carmine mica

no

god no

crisp yacht

LOL

carmine mica

if i made it i would kill myself