-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.js
28 lines (23 loc) · 1.22 KB
/
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
var rpc = require("discord-rpc") //import discord-rpc
const client = new rpc.Client({ transport: 'ipc' }) //define "client"
client.request('SET_ACTIVITY', {
pid: process.pid,
activity : {
details : "Edit this thing", //description
state: "Edit this thing 2", //state
assets : {
large_image : "big", //large Picture
large_text : "\"L\"-Logo", //large Picture text (if u hover over it)
small_image : "small", //small Picture
small_text: "\"Someones\"-logo", //small Picture text (if u hover over it)
},
buttons : [
{label : "rpc's Discord server",url : "https://server.steals-code.tk/someones"}, //First Button
{label : "rpc's Website" , url : "https://noice.link/bio"} //Second Button
]
}
})
client.on('ready', () => {
console.log("ready"); //Log output
})
client.login({ clientId : "835069063360151552" }).catch(console.error); //ClientID