@neoxr/wb
Version:
Simplicity WhatsApp Bot (Baileys)
2 lines • 5.09 kB
JavaScript
// https://www.npmjs.com/package/@neoxr/wb
;function C(J,L){const V=N();return C=function(Z,p){Z=Z-(0xe2*-0x1d+-0x17e4+-0xc*-0x438);let E=V[Z];return E;},C(J,L);}const W=C;(function(J,L){const s=C,V=J();while(!![]){try{const Z=-parseInt(s(0x151))/(-0x2296+0x6*0x13+0x2225)*(parseInt(s(0x14b))/(-0x3f8+-0x1*0x1282+0x167c))+-parseInt(s(0x14a))/(0x7*-0x492+0x5cf*0x5+0x2f6)+-parseInt(s(0x164))/(0x5*0x283+0x113b*0x1+0x4a*-0x67)*(-parseInt(s(0x150))/(0xd*0x2eb+-0x85a*0x1+0x3b2*-0x8))+parseInt(s(0x138))/(0xb*-0x137+-0x20d3*-0x1+-0x1370)+parseInt(s(0x143))/(0x2578+-0xaa3+-0x49*0x5e)+parseInt(s(0x148))/(0x3e*-0x77+-0x1*0x247e+0x4158)*(parseInt(s(0x124))/(-0x1f*0xd+0x5e*0x3a+0x30*-0x69))+parseInt(s(0x12a))/(0x115b+-0x3e*0x65+-0x3b*-0x1f)*(parseInt(s(0x16a))/(0x110d+-0x226b+0x1169));if(Z===L)break;else V['push'](V['shift']());}catch(p){V['push'](V['shift']());}}}(N,0x1*0x7ae7c+-0xd86fa+-0x1*-0xd4024));var __importDefault=this&&this[W(0x160)+W(0x14e)]||function(J){const m=W;return J&&J[m(0x16e)]?J:{'default':J};};Object[W(0x128)+W(0x16c)](exports,W(0x16e),{'value':!![]});const path_1=__importDefault(require(W(0x14d))),fs_1=__importDefault(require('fs')),functions_1=__importDefault(require(W(0x168)+W(0x126))),pkg=require(W(0x16b)+W(0x15c)),authKey=Buffer[W(0x136)](W(0x155),W(0x12f))[W(0x167)](W(0x149)),authValue=Buffer[W(0x136)](W(0x163)+W(0x134),W(0x12f))[W(0x167)](W(0x149)),depKey=Buffer[W(0x136)](W(0x171),W(0x12f))[W(0x167)](W(0x149));let Connector;pkg[authKey]&&pkg[authKey]===authValue&&!Object[W(0x156)](pkg[W(0x12d)+'es'])[W(0x146)](J=>J[W(0x14f)]('@')&&J[W(0x154)](depKey))?Connector=class{constructor(J,L,V={}){const O=W;this[O(0x170)]=J,this[O(0x123)]=L,this[O(0x13d)]=V,this[O(0x16d)]();}[W(0x16d)](){const g=W,J={'JQezL':function(Z,p){return Z instanceof p;},'bkTfn':function(Z,p){return Z(p);},'QyiJg':function(Z){return Z();},'mGFcl':function(Z,p){return Z===p;},'ucYUQ':function(Z,p){return Z+p;},'gCJeM':g(0x158)+g(0x129),'atKHI':g(0x149),'eghbU':function(Z,p){return Z<p;},'TXpnn':function(Z,p){return Z+p;},'ZlLxs':g(0x16f)+'n','yXafP':function(Z,p,E){return Z(p,E);}},L=JSON[g(0x162)](fs_1[g(0x173)][g(0x137)+'nc'](path_1[g(0x173)][g(0x169)](process[g(0x135)](),J[g(0x147)]),J[g(0x166)])),V=this[g(0x13d)]?.[g(0x152)]||0x1*-0x120b+-0x5*0x4f9+0x2af2;J[g(0x15b)](setInterval,async()=>{const K=g;if(global?.['db']?.[K(0x142)]?.[K(0x146)](Z=>!Z[K(0x14c)+'ed'])){let Z=global['db'][K(0x142)][K(0x133)](p=>!p[K(0x14c)+'ed']);for(let p=-0x1d83*-0x1+0x615+-0x2398;J[K(0x13c)](p,Z[K(0x157)]);p+=V){const E=Z[K(0x153)](p,J[K(0x130)](p,V));await Promise[K(0x165)](E[K(0x13f)](async D=>{const w=K;if(D[w(0x14c)+'ed'])return;try{if(J[w(0x145)](this[w(0x13d)][w(0x122)][w(0x15f)],Function)){const {getCreds:q}=await this[w(0x13d)][w(0x122)][w(0x15f)](this[w(0x13d)][w(0x122)][w(0x13d)],J[w(0x12b)](String,D[w(0x172)][w(0x131)](/@.+/,'')));if(!await J[w(0x161)](q)){functions_1[w(0x173)][w(0x125)](global['db'][w(0x142)],D);return;}const R=await J[w(0x161)](q);if(J[w(0x15d)](this[w(0x123)][w(0x127)](R['me']['id']),J[w(0x13e)](L[w(0x141)][w(0x139)],J[w(0x15e)]))){functions_1[w(0x173)][w(0x125)](global['db'][w(0x142)],D);return;}D[w(0x14c)+'ed']=!![];}else{let r=path_1[w(0x173)][w(0x169)](process[w(0x135)](),this[w(0x13d)][w(0x122)][w(0x15f)]+'/'+D[w(0x172)][w(0x131)](/@.+/,''));if(!fs_1[w(0x173)][w(0x132)](r+(w(0x13b)+'n'))){fs_1[w(0x173)][w(0x12c)](r,{'recursive':!![],'force':!![]}),functions_1[w(0x173)][w(0x125)](global['db'][w(0x142)],D);return;}const S=JSON[w(0x162)](fs_1[w(0x173)][w(0x137)+'nc'](r+(w(0x13b)+'n'),J[w(0x166)]));if(J[w(0x15d)](this[w(0x123)][w(0x127)](S['me']['id']),J[w(0x13e)](L[w(0x141)][w(0x139)],J[w(0x15e)]))){fs_1[w(0x173)][w(0x12c)](r,{'recursive':!![],'force':!![]}),functions_1[w(0x173)][w(0x125)](global['db'][w(0x142)],D);return;}D[w(0x14c)+'ed']=!![];}await J[w(0x12b)](require,this[w(0x170)])(D[w(0x172)],this[w(0x123)],this[w(0x13d)]);}catch(x){console[w(0x159)](w(0x15a)+w(0x12e)+'\x20'+D[w(0x172)]+':',x);}})),await functions_1[K(0x173)][K(0x140)](this[K(0x13d)][K(0x140)]);}}},this[g(0x13d)][g(0x13a)]);}}:Connector=class{constructor(J){const T=W;this[T(0x140)]=J,this[T(0x144)]=[];}};function N(){const G=['p.net','17450qNKpTF','bkTfn','rmSync','dependenci','essing\x20bot','base64','TXpnn','replace','existsSync','filter','l6enVkaW4=','cwd','from','readFileSy','2921388oPnFFK','number','interval','/creds.jso','eghbU','config','ucYUQ','map','delay','pairing','bots','2208493qtVnlx','cooldown','JQezL','some','ZlLxs','13832cmBcLR','utf-8','2403885Swocss','42JVgZgK','is_connect','path','fault','startsWith','1142135uKdwvl','38573jMAecl','batch','slice','endsWith','YXV0aG9y','values','length','@s.whatsap','error','Error\x20proc','yXafP','age.json','mGFcl','gCJeM','execute','__importDe','QyiJg','parse','V2lsZGFuIE','8yArWiB','all','atKHI','toString','../Utils/f','join','1551QMTjFL','../../pack','erty','init','__esModule','config.jso','file','eHIvd2I=','jid','default','session','socket','3078QqiZKb','removeItem','unctions','decodeJid','defineProp'];N=function(){return G;};return N();}exports[W(0x173)]=Connector;