discord-rpc/index.js

26 lines
610 B
JavaScript
Raw Permalink Normal View History

2021-05-30 06:15:37 +02:00
const { Client } = require("discord-rpc");
const rpc = new Client({
transport: "ipc",
});
rpc.on("ready", () => {
rpc.setActivity({
2023-03-20 12:09:57 +01:00
details: "Lilase",
state: "Subscribe to my YouTube",
2021-05-30 06:15:37 +02:00
startTimestamp: new Date(),
largeImageKey: "night",
largeImageText: "Night",
smallImageKey: "kaly",
smallImageText: "cath.exe",
buttons: [
2023-03-20 12:09:57 +01:00
{ label: "💭Website💭", url: "https://night0721.me/" },
2023-06-22 18:12:43 +02:00
{ label: "🌌YouTube🌌", url: "https://www.youtube.com/@night0721" },
2021-05-30 06:15:37 +02:00
],
});
console.log("RPC is ready now!");
});
rpc.login({
clientId: "848132314566885406",
});