#RPC help

4 messages · Page 1 of 1 (latest)

devout apex
#

I want to only run this on my bot and no one else how can i got about that


const ID = '';

const RPC = new DiscordRPC.Client({ transport: 'ipc' });

DiscordRPC.register(ID);

async function activity() {
    if (!RPC) return

    RPC.setActivity({
        details: 'RPC DETAILS',
        state: 'RPC STATE'
    })
}

RPC.on('ready', async () => {
    console.log("RPC STARTED");
    activity();

    setInterval(() => {
        activity();
    }, 100000000)
})

RPC.login({ clientId: ID});```
flint breachBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
carmine pond
#

you can't

#

first of all, bots cannot have rich presence