-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
35 lines (32 loc) · 992 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Requiring dependencies.
const RPC = require("discord-rpc");
const client = new RPC.Client({transport: "ipc" }); // Other Options: Websocket
const { id, secret } = require("./config.json");
// Customize your Presence
const activity = {
details: `Details Here`,
assets: {
large_image: "name of the profile image",
large_text: "text name",
small_image: "name of the small picture",
small_text: "url here"
},
buttons: [
{
"label": "name of the first button",
"url": "Url Here"
},
{
"label": "name of the first button",
"url": "Url Here"
}
],
timestamps: {start: Date.now()},
instance: true
};
client.on("ready", () => {
console.log("🔌 Rich Presence connect to Discord");
console.log("Made by : Link0Darck");
client.request("SET_ACTIVITY", {pid: process.pid, activity: activity});
});
client.login({clientId: id, clientSecret: secret});