-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
23 lines (21 loc) · 828 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
var rpc = require("discord-rpc")
const client = new rpc.Client({ transport: 'ipc' })
// Status ON
client.on('ready', () => {
client.request('SET_ACTIVITY', {
pid: process.pid,
activity : {
details : "www.callejerosrp.com | Cuscusero#0001", // Game text
assets : {
large_image : "callejeros", // Name of the image you put in the Rich Presence in the BOT
large_text : "www.callejerosrp.com" // Text when the mouse is over the image
},
buttons : [
{label : "WEB" , url : "https://callejerosrp.com"},
{label : "Discord",url : "https://discord.gg/callejerosrp"}
]
}
})
})
// Id bot Discord (https://discord.com/developers/applications)
client.login({ clientId : "675683994553024523" }).catch(console.error);