-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
29 lines (23 loc) · 800 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
/**
* @name Discord-CRS
* @author DinoNuggyChan
* @version 0.0.1
* @website https://www.nuggy.space/
* @source https://github.com/DinoNuggyChan/Discord-CRS
*/
var rpc = require("discord-rpc")
const client = new rpc.Client({ transport: 'ipc' })
client.on('ready', () => {
client.request('SET_ACTIVITY', {
pid: process.pid,
activity : {
details : "details text", //text under activity name example: https://i.imgur.com/3cpsKjm.png
assets : {
large_image : "image name", //make sure its all in lower case
large_text : "image text" // text when you hover over image
},
buttons : [{label : "First Button Name" , url : "first button link"},{label : "Second Button Name" , url : "Second Button Link"}]
}
})
})
client.login({ clientId : "ClientID" }).catch(console.error);