-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
35 lines (32 loc) · 1010 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: "Invite Vivre & Vivre Music Now.",
assets: {
large_image: "inshot_20211004_102237118",
large_text: "Vivre",
small_image: "vivre",
small_text: "Vivre Music"
},
buttons: [
{
"label": "Vivre",
"url": "https://www.vivre.cf/invite"
},
{
"label": "Vivre Music",
"url": "https://www.vivre.cf/pages/vivre-music/invite"
}
],
timestamps: {start: Date.now()},
instance: true
};
client.on("ready", () => {
console.log("Listening on https://www.itscruel.cf");
console.log("Made by Ahad#3257");
client.request("SET_ACTIVITY", {pid: process.pid, activity: activity});
});
client.login({clientId: id, clientSecret: secret});