westor

Untitled

Oct 23rd, 2021
848
133 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. alias guilded {
  2.   var %s = guilded_ $+ $rands(1,10000000000)
  3.  
  4.   sockopen %s media.guilded.gg 443
  5. }
  6.  
  7. ON *:SOCKOPEN:guilded: {
  8.   if ($sockerr) { echo 4 -a Open Error: $sock($sockname).wsmsg | return }
  9.  
  10.   sockwrite -nt $sockname GET /webhooks/d8773524-5545-43cf-8770-757d001a8dee/d5J2m9oiTQq0sYIgcmSggmEmYAi6C0qCAuikGmOe2g0Cca0EcoKAIqywsomW4ss6Mqsa4oEceAMQ4skyscMgmq HTTP/1.1
  11.   sockwrite -nt $sockname Host: $sock($sockname).addr
  12.   sockwrite -nt $sockname Content-Type: application/json
  13.   sockwrite -nt $sockname $crlf
  14. }
  15.  
  16. ON *:SOCKREAD:guilded: {
  17.   if ($sockerr) { echo 4 -a Read Error: $sock($sockname).wsmsg | return }
  18.  
  19.   var %r
  20.   sockread %r
  21.  
  22.   echo 2 -s Read: %r
  23. }
RAW Paste Data