RPC help

I want to only run this on my bot and no one else how can i got about that
const DiscordRPC = require('discord-rpc');

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});
const DiscordRPC = require('discord-rpc');

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});
1 Reply
d.js toolkit
d.js toolkit14mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - 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!
Want results from more Discord servers?
Add your server