© 2026 Hedgehog Software, LLC
const DiscordRPC = require('discord-rpc'); const clientId = '#'; const TrackerRPC = new DiscordRPC.Client({ transport: 'ipc' }); async function setActivity() { if (!TrackerRPC) return; TrackerRPC.setActivity({ details: 'Tracker ', state: 'By Delta-data', startTimestamp: Date.now(), largeImageKey: 'angry-bee', largeImageText: 'angry-bee', smallImageKey: '#', smallImageText: '##', instance: false, buttons: [ { label: "Discord", url: "#1" }, { label: "Telegram", url: "#2" } ], }); } TrackerRPC.on('ready', async () => { setActivity(); setInterval(() => { setActivity(); }, 15 * 1000); }); TrackerRPC.login({ clientId }).catch(console.error); module.exports = { TrackerRPC, setActivity };
Join the Discord to ask follow-up questions and connect with the community
Support server for discord.js, a Node.js module to interact with Discord's apps API.
57,666 Members