daily pastebin goal
88%
SHARE
TWEET

Untitled

a guest Mar 25th, 2019 105 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Odpisywanie z Discorda
  3. // @author       hunti
  4. // @match        http://*.margonem.pl/
  5. // ==/UserScript==
  6. (()=>{let e,d,f=!0;const h=b=>{_g(`chat&c=${b}`,function(c){"ok"!=c.e&&h(b)})},i=()=>{e=new WebSocket("ws://77.55.209.180:8080/"),d=!1,e.onopen=function(){d=!0,e.send(JSON.stringify({type:"conn",value:"61KXKIAXR61WGGL"}))},e.onerror=()=>{d=!1,message("Wystąpił błąd//Odpisywanie")},e.onclose=()=>{d=!1,message("Rozłączono z serwerem!//Odpisywanie")},e.onmessage=function(c){if(!0==d)try{const a=JSON.parse(c.data);"message"==a.type?h(a.content):"error"==a.type&&alert(a.text)}catch(b){console.log(b),alert("Wystąpił błąd!")}},g.chat.parsers.push(function(a){if((1>g.chat.ts&&!0==f&&(f=!1),!1==f&&g.ev-1<a.ts&&(f=!0),""!=a.n&&"entertown"!=a.s)&&!0==f){let d=0;var b,h=new Date;0==a.k?(d=13290186,b=`**«${a.n}»** (${h.toLocaleTimeString()}) ${a.t}`):1==a.k?(d=16737536,b=`**«${a.n}»** (${h.toLocaleTimeString()}) ${a.t}`):2==a.k?(d=3604725,b=`**«${a.n}»** (${h.toLocaleTimeString()}) ${a.t}`):3==a.k&&(d=5046016,b=`**«${a.n} -> ${a.nd}»** (${h.toLocaleTimeString()}) ${a.t}`),e.send(JSON.stringify({type:`msg`,value:{embed:{title:`Nowa wiadomość w grze`,description:b,color:d}}}))}})};g.loadQueue.push({fun:function(){i()}})})();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top