diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..30bc162 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/node_modules \ No newline at end of file diff --git a/index.js b/index.js new file mode 100644 index 0000000..7c3af88 --- /dev/null +++ b/index.js @@ -0,0 +1,26 @@ +const { Client } = require("discord-rpc"); +const rpc = new Client({ + transport: "ipc", +}); + +rpc.on("ready", () => { + rpc.setActivity({ + details: "🔥Working on cath.exe", + state: "Subscribe to me below!", + startTimestamp: new Date(), + largeImageKey: "night", + largeImageText: "Night", + smallImageKey: "kaly", + smallImageText: "cath.exe", + buttons: [ + { label: "💭Website💭", url: "https://cath.gq/" }, + { label: "🌌YouTube🌌", url: "https://youtube.com/c/Kirito01" }, + ], + }); + + console.log("RPC is ready now!"); +}); + +rpc.login({ + clientId: "848132314566885406", +}); diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..e2c6fc0 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,27 @@ +{ + "name": "RPC-Night", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "discord-rpc": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/discord-rpc/-/discord-rpc-3.2.0.tgz", + "integrity": "sha512-KJv0EVbGMlr04HoG6f5b3wD7X9kSHzQ2Ed2qfHSDvYJ1MkE8RbCQmMcQQrSvAxpfsqZgUjB/bsfi/mjyicCH+A==", + "requires": { + "node-fetch": "^2.6.1", + "ws": "^7.3.1" + } + }, + "node-fetch": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", + "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" + }, + "ws": { + "version": "7.4.6", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz", + "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..781d666 --- /dev/null +++ b/package.json @@ -0,0 +1,16 @@ +{ + "name": "RPC-Night", + "version": "1.0.0", + "description": "Discord Rich Presence", + "main": "index.js", + "dependencies": { + "discord-rpc": "^3.2.0" + }, + "devDependencies": {}, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [], + "author": "", + "license": "ISC" +}