UNPKG

@neoxr/wb

Version:

Simplicity WhatsApp Bot (Baileys)

2 lines 4.78 kB
// https://www.npmjs.com/package/@neoxr/wb 'use strict';function C(k,J){const w=i();return C=function(O,W){O=O-(-0x73*0x1+-0x2557+0x265c);let m=w[O];return m;},C(k,J);}const K=C;(function(k,J){const P=C,w=k();while(!![]){try{const O=-parseInt(P(0xaf))/(0x1faf*0x1+0xd9f+-0x2d4d)*(parseInt(P(0xb8))/(0x11f2*0x2+-0x8fd+-0x8f7*0x3))+-parseInt(P(0xdc))/(-0x577*-0x3+-0x1d42+0xce0)+-parseInt(P(0xa9))/(-0x1cbd+0x1*0x19b5+0x30c)+parseInt(P(0x92))/(-0xdb5+-0x93*0x2d+-0x7*-0x5a7)+-parseInt(P(0xc2))/(-0x1*0x5a5+0x17*-0x151+-0x2b*-0xd6)+-parseInt(P(0xd3))/(0x1*-0x9fa+0x73d+0x2c4)+parseInt(P(0xd2))/(-0x1*0x10f1+-0x58f+-0x2*-0xb44);if(O===J)break;else w['push'](w['shift']());}catch(W){w['push'](w['shift']());}}}(i,0x1a8*-0x1c6+0x937ef+0x1e6d));var __importDefault=this&&this[K(0xbb)+K(0xdd)]||function(k){const L=K;return k&&k[L(0xcf)]?k:{'default':k};};Object[K(0xb0)+K(0xcc)](exports,K(0xcf),{'value':!![]});const path_1=__importDefault(require(K(0x9b))),fs_1=__importDefault(require('fs')),functions_1=__importDefault(require(K(0xa4)+K(0xdf))),pkg=require(K(0xc3)+K(0xb3)),authKey=Buffer[K(0x9c)](K(0x9a),K(0xc9))[K(0xa7)](K(0xd0)),authValue=Buffer[K(0x9c)](K(0xaa)+K(0xc6),K(0xc9))[K(0xa7)](K(0xd0)),depKey=Buffer[K(0x9c)](K(0xb9),K(0xc9))[K(0xa7)](K(0xd0));function i(){const Y=['socket','../Utils/f','filter','peJUL','toString','decodeJid','3236796kaXOzo','V2lsZGFuIE','dependenci','rmSync','config.jso','is_connect','1DujcfK','defineProp','tmjSb','pairing','age.json','execute','length','cwd','ftpQc','712606hMiAXu','eHIvd2I=','NgvYG','__importDe','BhYLa','cooldown','srWSu','essing\x20bot','zHLll','xrKgM','3429438kAJRDJ','../../pack','all','jid','l6enVkaW4=','replace','values','base64','error','slice','erty','WWJbZ','vzBVr','__esModule','utf-8','/creds.jso','25438536LVOwTU','3490732urWlXl','config','removeItem','some','WCnjL','@s.whatsap','batch','p.net','interval','2364663RqlBqH','fault','map','unctions','bots','GLoLu','1317955XFIQPa','Error\x20proc','session','delay','number','init','parse','readFileSy','YXV0aG9y','path','from','default','file','join','endsWith','existsSync','startsWith'];i=function(){return Y;};return i();}let Connector;pkg[authKey]&&pkg[authKey]===authValue&&!Object[K(0xc8)](pkg[K(0xab)+'es'])[K(0xd6)](k=>k[K(0xa2)]('@')&&k[K(0xa0)](depKey))?Connector=class{constructor(k,J,w={}){const u=K;this[u(0x9e)]=k,this[u(0xa3)]=J,this[u(0xd4)]=w,this[u(0x97)]();}[K(0x97)](){const g=K,k={'xrKgM':function(O,W){return O instanceof W;},'BhYLa':function(O,W){return O(W);},'srWSu':function(O){return O();},'zHLll':function(O,W){return O===W;},'vzBVr':function(O,W){return O+W;},'WCnjL':g(0xd8)+g(0xda),'ftpQc':g(0xd0),'peJUL':function(O,W){return O+W;},'WWJbZ':function(O,W){return O<W;},'tmjSb':function(O,W){return O+W;},'NgvYG':g(0xad)+'n','GLoLu':function(O,W,m){return O(W,m);}},J=JSON[g(0x98)](fs_1[g(0x9d)][g(0x99)+'nc'](path_1[g(0x9d)][g(0x9f)](process[g(0xb6)](),k[g(0xba)]),k[g(0xb7)])),w=this[g(0xd4)]?.[g(0xd9)]||0x7*-0xf5+0x16a3+0x32e*-0x5;k[g(0xe1)](setInterval,async()=>{const b=g;if(global?.['db']?.[b(0xe0)]?.[b(0xd6)](O=>!O[b(0xae)+'ed'])){let O=global['db'][b(0xe0)][b(0xa5)](W=>!W[b(0xae)+'ed']);for(let W=0x617*0x6+0x9c0+-0x2e4a;k[b(0xcd)](W,O[b(0xb5)]);W+=w){const m=O[b(0xcb)](W,k[b(0xb1)](W,w));await Promise[b(0xc4)](m[b(0xde)](async G=>{const R=b;if(G[R(0xae)+'ed'])return;try{if(k[R(0xc1)](this[R(0xd4)][R(0x94)][R(0xb4)],Function)){const {getCreds:N}=await this[R(0xd4)][R(0x94)][R(0xb4)](this[R(0xd4)][R(0x94)][R(0xd4)],k[R(0xbc)](String,G[R(0xc5)][R(0xc7)](/@.+/,'')));if(!await k[R(0xbe)](N)){functions_1[R(0x9d)][R(0xd5)](global['db'][R(0xe0)],G);return;}const E=await k[R(0xbe)](N);if(k[R(0xc0)](this[R(0xa3)][R(0xa8)](E['me']['id']),k[R(0xce)](J[R(0xb2)][R(0x96)],k[R(0xd7)]))){functions_1[R(0x9d)][R(0xd5)](global['db'][R(0xe0)],G);return;}G[R(0xae)+'ed']=!![];}else{let S=path_1[R(0x9d)][R(0x9f)](process[R(0xb6)](),this[R(0xd4)][R(0x94)][R(0xb4)]+'/'+G[R(0xc5)][R(0xc7)](/@.+/,''));if(!fs_1[R(0x9d)][R(0xa1)](S+(R(0xd1)+'n'))){fs_1[R(0x9d)][R(0xac)](S,{'recursive':!![],'force':!![]}),functions_1[R(0x9d)][R(0xd5)](global['db'][R(0xe0)],G);return;}const f=JSON[R(0x98)](fs_1[R(0x9d)][R(0x99)+'nc'](S+(R(0xd1)+'n'),k[R(0xb7)]));if(k[R(0xc0)](this[R(0xa3)][R(0xa8)](f['me']['id']),k[R(0xa6)](J[R(0xb2)][R(0x96)],k[R(0xd7)]))){fs_1[R(0x9d)][R(0xac)](S,{'recursive':!![],'force':!![]}),functions_1[R(0x9d)][R(0xd5)](global['db'][R(0xe0)],G);return;}G[R(0xae)+'ed']=!![];}await k[R(0xbc)](require,this[R(0x9e)])(G[R(0xc5)],this[R(0xa3)],this[R(0xd4)]);}catch(t){console[R(0xca)](R(0x93)+R(0xbf)+'\x20'+G[R(0xc5)]+':',t);}})),await functions_1[b(0x9d)][b(0x95)](this[b(0xd4)][b(0x95)]);}}},this[g(0xd4)][g(0xdb)]);}}:Connector=class{constructor(k){const y=K;this[y(0x95)]=k,this[y(0xbd)]=[];}};exports[K(0x9d)]=Connector;