Advertisement
ShadowPlay1

Untitled

Apr 2nd, 2021
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. var rpc = require('discord-rpc')
  2. const client = new rpc.Client({transport: 'ipc'})
  3. client.on('ready', () =>{
  4. client.request('SET_ACTIVITY', {
  5. pid: process.pid,
  6. activity: {
  7. details: "sb_construct",
  8. state: "Spectating",
  9. timestamps: {
  10. start: Date.now()
  11. },
  12. assets: {
  13. large_image: 'bdefault',
  14. large_text: "Map: sb_construct",
  15. small_image: 'sdefault',
  16. },
  17. party: {
  18. id: "ABOBA",
  19. size: [2,24]
  20. },
  21. buttons: [{label: "Get early-access", url:"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}]
  22. },
  23. })
  24. })
  25. client.login({clientId: "827226794259120178"}).catch(console.error)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement