Please check YouTube for Tutorials!
This commit is contained in:
parent
e5a9231189
commit
9e62d23116
4 changed files with 70 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/node_modules
|
26
index.js
Normal file
26
index.js
Normal file
|
@ -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",
|
||||
});
|
27
package-lock.json
generated
Normal file
27
package-lock.json
generated
Normal file
|
@ -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=="
|
||||
}
|
||||
}
|
||||
}
|
16
package.json
Normal file
16
package.json
Normal file
|
@ -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"
|
||||
}
|
Loading…
Reference in a new issue