-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
1 lines (1 loc) · 3.61 KB
/
index.js
1
function _0x2631(){const _0x382c40=['./session/creds.json','Router','listen','output','session','statusCode','PORT','qrcode','user','application/json','messages.upsert','6120ZtVqtQ','env','error','exit','connection.update','7503672ZmnmoF','log','creds.json','81735YWDFdY','sendMessage','272REprHH','close','Safari','2007qcZtuK','CREDIT\x20GOES\x20TO\x20ITS-ME\x20AND\x20FANTOX','app','@adiwajshing/baileys','readFileSync','1661544zhoTVS','Server\x20running\x20on\x20PORT','3rhvJJL','silent','660908zPJzZG','118419QSHdKT','use','express','pino','Ikratos-MD','884PLWkFd','4175mDJymY','open'];_0x2631=function(){return _0x382c40;};return _0x2631();}function _0x5f09(_0x40506e,_0x5f2dad){const _0x2631d2=_0x2631();return _0x5f09=function(_0x5f0965,_0x2d3521){_0x5f0965=_0x5f0965-0x14a;let _0x278188=_0x2631d2[_0x5f0965];return _0x278188;},_0x5f09(_0x40506e,_0x5f2dad);}const _0x3dfc9e=_0x5f09;(function(_0xc69650,_0x31e7c8){const _0x2cf258=_0x5f09,_0x1c074f=_0xc69650();while(!![]){try{const _0x34c651=-parseInt(_0x2cf258(0x16d))/0x1+parseInt(_0x2cf258(0x151))/0x2*(parseInt(_0x2cf258(0x14f))/0x3)+-parseInt(_0x2cf258(0x157))/0x4*(parseInt(_0x2cf258(0x158))/0x5)+parseInt(_0x2cf258(0x14d))/0x6+parseInt(_0x2cf258(0x152))/0x7*(-parseInt(_0x2cf258(0x16f))/0x8)+-parseInt(_0x2cf258(0x172))/0x9*(parseInt(_0x2cf258(0x165))/0xa)+parseInt(_0x2cf258(0x16a))/0xb;if(_0x34c651===_0x31e7c8)break;else _0x1c074f['push'](_0x1c074f['shift']());}catch(_0x539f6f){_0x1c074f['push'](_0x1c074f['shift']());}}}(_0x2631,0x4c136));const makeWASocket=require(_0x3dfc9e(0x14b))['default'],fs=require('fs'),pino=require(_0x3dfc9e(0x155)),{delay,sleep,useMultiFileAuthState,BufferJSON,fetchLatestBaileysVersion}=require('@adiwajshing/baileys'),express=require(_0x3dfc9e(0x154)),{toBuffer}=require(_0x3dfc9e(0x161)),app=global[_0x3dfc9e(0x14a)]=express(),PORT=process[_0x3dfc9e(0x166)][_0x3dfc9e(0x160)]||0xbd6,router=express[_0x3dfc9e(0x15b)]();app[_0x3dfc9e(0x153)]('/',router['get']('/',(_0x218b7b,_0xe093fa)=>{async function _0x315400(){const _0x42cf6e=_0x5f09;let {version:_0x46a753,isLatest:_0x14f9c6}=await fetchLatestBaileysVersion();const {state:_0x2fd50,saveCreds:_0x16ffea}=await useMultiFileAuthState(_0x42cf6e(0x15e)),_0x5b0375=makeWASocket({'logger':pino({'level':_0x42cf6e(0x150)}),'printQRInTerminal':!![],'browser':[_0x42cf6e(0x156),_0x42cf6e(0x171),'3.1.0'],'auth':_0x2fd50,'version':_0x46a753});_0x5b0375['ev']['on'](_0x42cf6e(0x169),async _0x49072a=>{const _0x109e5e=_0x42cf6e;console[_0x109e5e(0x16b)]('');_0x49072a['qr']!==undefined&&_0xe093fa['end'](await toBuffer(_0x49072a['qr']));const {connection:_0xe229b6,lastDisconnect:_0x163aaa}=_0x49072a;if(_0xe229b6==_0x109e5e(0x159)){await delay(0x3e8*0x5);let _0x3ccac1=fs[_0x109e5e(0x14c)](_0x109e5e(0x15a));_0x5b0375[_0x109e5e(0x16e)](_0x5b0375[_0x109e5e(0x162)]['id'],{'document':_0x3ccac1,'mimetype':_0x109e5e(0x163),'fileName':_0x109e5e(0x16c)}),await delay(0x3e8*0x2);let _0x1bc750='BOT\x20HAS\x20BEEN\x20CONNECTED\x20NOW\x20UPLOAD\x20THE\x20CREDS\x20JSON\x20FILES\x20IN\x20SESSIONS\x20FOLDER\x20ON\x20GITHUB\x20AND\x20DEPLOY\x20IT\x20DESIRED\x20PLATFORM';_0x5b0375['sendMessage'](_0x5b0375[_0x109e5e(0x162)]['id'],{'text':''+_0x1bc750});let _0x23f0e6=_0x109e5e(0x173);_0x5b0375[_0x109e5e(0x16e)](_0x5b0375[_0x109e5e(0x162)]['id'],{'text':''+_0x23f0e6}),await delay(0x3e8*0x5),process[_0x109e5e(0x168)](0x0);}_0xe229b6===_0x109e5e(0x170)&&_0x163aaa&&_0x163aaa['error']&&_0x163aaa[_0x109e5e(0x167)][_0x109e5e(0x15d)][_0x109e5e(0x15f)]!=0x191&&_0x315400();}),_0x5b0375['ev']['on']('creds.update',_0x16ffea),_0x5b0375['ev']['on'](_0x42cf6e(0x164),()=>{});}_0x315400();})),app[_0x3dfc9e(0x15c)](PORT,()=>console[_0x3dfc9e(0x16b)](_0x3dfc9e(0x14e),PORT));