Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var rpc = require('discord-rpc')
- const client = new rpc.Client({transport: 'ipc'})
- client.on('ready', () =>{
- client.request('SET_ACTIVITY', {
- pid: process.pid,
- activity: {
- details: "sb_construct",
- state: "Spectating",
- timestamps: {
- start: Date.now()
- },
- assets: {
- large_image: 'bdefault',
- large_text: "Map: sb_construct",
- small_image: 'sdefault',
- },
- party: {
- id: "ABOBA",
- size: [2,24]
- },
- buttons: [{label: "Get early-access", url:"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}]
- },
- })
- })
- client.login({clientId: "827226794259120178"}).catch(console.error)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement