forked from DeeCeeXxx/Queen_Anita-V3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jadibot.js
1 lines (1 loc) · 13.6 KB
/
jadibot.js
1
const _0xac9f75=_0x233d;(function(_0x51e9dd,_0x4fd3c0){const _0x2a543c=_0x233d,_0x253418=_0x51e9dd();while(!![]){try{const _0x55c70a=-parseInt(_0x2a543c(0x1e7))/0x1+-parseInt(_0x2a543c(0x1ed))/0x2+-parseInt(_0x2a543c(0x1f0))/0x3+-parseInt(_0x2a543c(0x255))/0x4*(parseInt(_0x2a543c(0x21c))/0x5)+parseInt(_0x2a543c(0x212))/0x6+-parseInt(_0x2a543c(0x24e))/0x7+parseInt(_0x2a543c(0x226))/0x8;if(_0x55c70a===_0x4fd3c0)break;else _0x253418['push'](_0x253418['shift']());}catch(_0x4dfce8){_0x253418['push'](_0x253418['shift']());}}}(_0x18e6,0x32732));const {modul}=require('./module'),{baileys,boom,chalk,fs,figlet,FileType,process,PhoneNumber}=modul,{Boom}=boom,path=require(_0xac9f75(0x22e)),{default:makeWaSocket,useMultiFileAuthState,DisconnectReason,fetchLatestBaileysVersion,generateForwardMessageContent,generateWAMessage,prepareWAMessageMedia,generateWAMessageFromContent,generateMessageID,downloadContentFromMessage,makeInMemoryStore,jidDecode,proto,makeCacheableSignalKeyStore}=baileys,{color,bgcolor}=require('./lib/color'),log=pino=require('pino'),qrcode=require('qrcode'),rimraf=require(_0xac9f75(0x234));let Pino=require('pino');const {imageToWebp,videoToWebp,writeExifImg,writeExifVid}=require('./exif'),{smsg,isUrl,generateMessageTag,getBuffer,getSizeMedia,fetchJson,await,sleep,reSize}=require(_0xac9f75(0x1ff)),store=makeInMemoryStore({'logger':pino()['child']({'level':_0xac9f75(0x20f),'stream':_0xac9f75(0x1ef)})});function _0x18e6(){const _0x2b4c7a=['msg','endsWith','decodeJid','parseMention','child','loggedOut','fromMe','path','notify','content','message','getName','Connecting\x20to\x20Queen_Anita-V1..','rimraf','Connection\x20Lost\x20from\x20Server,\x20reconnecting...','BEGIN:VCARD\x0a\x0aVERSION:3.0\x0a\x0aN:','Connection\x20closed,\x20reconnecting....','\x0a\x0aitem1.X-ABLabel:Ponsel\x0a\x0aitem2.EMAIL;type=INTERNET:[email protected]\x0a\x0aitem2.X-ABLabel:Email\x0a\x0aitem3.URL:https://bit.ly/39Ivus6\x0a\x0aitem3.X-ABLabel:YouTube\x0a\x0aitem4.ADR:;;Indonesia;;;;\x0a\x0aitem4.X-ABLabel:Region\x0a\x0aEND:VCARD','reply','mtype','reject','statusCode','bold','block','setStatus','attrs','updateBlockStatus','connection.update','ext','from','type','public','utf-8','makeWASocket','fromBuffer','[\x20Jadibot\x20]\x20->\x20(+','node-cache','Connection\x20TimedOut,\x20Reconnecting...','log','2319212btbYsK','query','call','Chrome','creds','time','red','1644QIOozY','call-creator','push','sendMessage','length','connecting','@g.us','registered','split','restartRequired','requestPairingCode','withoutContact','international','close','[email protected]','timedOut','99526UiTiLg','user','subject','now','CB:call','messages.upsert','782428OmqzHQ','open','store','69633haizjr','Bad\x20Session\x20File,\x20Please\x20Delete\x20Session\x20and\x20Scan\x20Again','Connection\x20Replaced,\x20Another\x20New\x20Session\x20Opened,\x20Please\x20Close\x20Current\x20Session\x20First','@s.whatsapp.net','keys','call-id','sendText','sendContact','blocklist','Automatic\x20Block\x20System!!!\x0aDon\x27t\x20Call\x20Bot!!!\x0aPlease\x20Contact\x20Owner\x20To\x20Open!!','ptzce\x20Logged\x20Out,\x20Please\x20Scan\x20Again\x20And\x20Run.','startsWith','end','conns','Restart\x20Required,\x20Restarting...','./myfunc','messages','contacts','downloadMediaMessage','sendNode','./session2/jadibot/clone','contacts.update','BAE5','bind','key','s.whatsapp.net','output','verifiedName','badSession','ephemeralMessage','fatal','silent','name','connectionClosed','2473698ndlBgr','matchAll','status','set','map','remoteJid','[email protected]','CB:Blocklist','server','*Connected\x20to\x20Whatsapp\x20-\x20Bot*\x0a\x0a*User\x20:*\x0a\x20_*×\x20id\x20:\x20','2605DuTEOB','*Connected\x20to\x20Whatsapp\x20-\x20Bot*\x0a\x0a\x20_\x20User\x20:\x20@','error','replace','Ubuntu','getNumber','join','mimetype','./message.js','concat','6830056xKJyEn'];_0x18e6=function(){return _0x2b4c7a;};return _0x18e6();}let NodeCache=require(_0xac9f75(0x24b)),msgRetryCounterCache=new NodeCache();if(global[_0xac9f75(0x1fd)]instanceof Array)console[_0xac9f75(0x24d)]();else global[_0xac9f75(0x1fd)]=[];const jadibot=async(_0x5d374f,_0x39fac8,_0x5af803,_0x467ca0)=>{const _0x178dbd=_0xac9f75,{sendImage:_0x4141c9,sendMessage:_0x1f8a7b}=_0x5d374f,{reply:_0x4cc1e3,sender:_0x5523d4}=_0x5af803,{state:_0x4186db,saveCreds:_0x4e72e0}=await useMultiFileAuthState(path[_0x178dbd(0x222)](__dirname,_0x178dbd(0x204)),log({'level':'silent'}));try{async function _0x510cbd(){const _0x1a2d6f=_0x178dbd;let {version:_0x7adc07,isLatest:_0x2f8fc2}=await fetchLatestBaileysVersion();const _0x38266c={'logger':Pino({'level':_0x1a2d6f(0x20e)})[_0x1a2d6f(0x22b)]({'level':_0x1a2d6f(0x20e)}),'printQRInTerminal':![],'mobile':![],'auth':{'creds':_0x4186db[_0x1a2d6f(0x252)],'keys':makeCacheableSignalKeyStore(_0x4186db[_0x1a2d6f(0x1f4)],Pino({'level':_0x1a2d6f(0x20e)})[_0x1a2d6f(0x22b)]({'level':'fatal'}))},'browser':[_0x1a2d6f(0x220),_0x1a2d6f(0x251),'20.0.04'],'markOnlineOnConnect':!![],'generateHighQualityLinkPreview':!![],'msgRetryCounterCache':msgRetryCounterCache,'defaultQueryTimeoutMs':undefined};let _0x57d87c=require('./simple');const _0x1ca836=_0x57d87c[_0x1a2d6f(0x248)](_0x38266c);!_0x1ca836['authState'][_0x1a2d6f(0x252)][_0x1a2d6f(0x1de)]&&setTimeout(async()=>{const _0x2f63f4=_0x1a2d6f;let _0x89ae1e=''+_0x39fac8;console[_0x2f63f4(0x24d)](chalk[_0x2f63f4(0x254)][_0x2f63f4(0x23d)](_0x2f63f4(0x24a)+_0x89ae1e+')'));let _0x38839b=await _0x1ca836[_0x2f63f4(0x1e1)](_0x89ae1e),_0x205c8d=_0x38839b?.['match'](/.{1,4}/g)?.[_0x2f63f4(0x222)]('-')||_0x38839b;global['codepairing']=''+_0x205c8d;},0xbb8),_0x1ca836['ws']['on'](_0x1a2d6f(0x219),_0x502354=>{const _0x173d57=_0x1a2d6f;if(blocked[_0x173d57(0x1db)]>0x2)return;for(let _0x1b3d03 of _0x502354[0x1][_0x173d57(0x1f8)]){blocked[_0x173d57(0x257)](_0x1b3d03[_0x173d57(0x21f)]('c.us',_0x173d57(0x209)));}}),_0x1ca836['ws']['on'](_0x1a2d6f(0x1eb),async _0x133d4c=>{const _0x195bfd=_0x1a2d6f,_0x28da36=_0x133d4c['content'][0x0][_0x195bfd(0x240)][_0x195bfd(0x256)],_0x5b677f=_0x133d4c['content'][0x0][_0x195bfd(0x240)][_0x195bfd(0x1f5)],_0x3cb4ab=_0x133d4c[_0x195bfd(0x240)]['id'],_0x36ad0d=_0x133d4c['attrs']['t'];_0x1ca836[_0x195bfd(0x203)]({'tag':_0x195bfd(0x250),'attrs':{'from':_0x195bfd(0x1e5),'id':_0x3cb4ab,'t':_0x36ad0d},'content':[{'tag':_0x195bfd(0x23b),'attrs':{'call-creator':_0x28da36,'call-id':_0x5b677f,'count':'0'},'content':null}]});if(_0x133d4c[_0x195bfd(0x230)][0x0]['tag']=='offer'){let _0x4bf76a=await _0x1ca836[_0x195bfd(0x1f7)](_0x28da36,owner);await _0x1ca836[_0x195bfd(0x258)](_0x28da36,{'text':_0x195bfd(0x1f9)},{'quoted':_0x4bf76a}),await sleep(0x1f40),await _0x1ca836[_0x195bfd(0x241)](_0x28da36,_0x195bfd(0x23e));}}),_0x1ca836['ev']['on'](_0x1a2d6f(0x1ec),async _0x37ea4c=>{const _0x320b0f=_0x1a2d6f;try{kay=_0x37ea4c[_0x320b0f(0x200)][0x0];if(!kay[_0x320b0f(0x231)])return;kay[_0x320b0f(0x231)]=Object[_0x320b0f(0x1f4)](kay[_0x320b0f(0x231)])[0x0]==='ephemeralMessage'?kay[_0x320b0f(0x231)][_0x320b0f(0x20d)][_0x320b0f(0x231)]:kay['message'];if(kay[_0x320b0f(0x208)]&&kay[_0x320b0f(0x208)][_0x320b0f(0x217)]==='status@broadcast')return;if(!_0x1ca836[_0x320b0f(0x246)]&&!kay[_0x320b0f(0x208)][_0x320b0f(0x22d)]&&_0x37ea4c[_0x320b0f(0x245)]===_0x320b0f(0x22f))return;if(kay[_0x320b0f(0x208)]['id'][_0x320b0f(0x1fb)](_0x320b0f(0x206))&&kay[_0x320b0f(0x208)]['id']['length']===0x10)return;_0x5af803=smsg(_0x1ca836,kay,store),require(_0x320b0f(0x224))(_0x1ca836,_0x5af803,_0x37ea4c,store);}catch(_0x1d8967){console[_0x320b0f(0x24d)](_0x1d8967);}}),_0x1ca836[_0x1a2d6f(0x246)]=!![],store[_0x1a2d6f(0x207)](_0x1ca836['ev']),_0x1ca836['ev']['on']('creds.update',_0x4e72e0),_0x1ca836['ev']['on'](_0x1a2d6f(0x242),async _0x4b5766=>{const _0x3bfab0=_0x1a2d6f,{lastDisconnect:_0x3c8ec3,connection:_0x202e68}=_0x4b5766;if(_0x202e68=='connecting')return;if(_0x202e68){if(_0x202e68!=_0x3bfab0(0x1dc))console[_0x3bfab0(0x24d)](_0x3bfab0(0x233));}_0x202e68==_0x3bfab0(0x1ee)&&(_0x1ca836['id']=_0x1ca836[_0x3bfab0(0x229)](_0x1ca836[_0x3bfab0(0x1e8)]['id']),_0x1ca836[_0x3bfab0(0x253)]=Date[_0x3bfab0(0x1ea)](),global[_0x3bfab0(0x1fd)][_0x3bfab0(0x257)](_0x1ca836),await _0x5af803[_0x3bfab0(0x239)](_0x3bfab0(0x21b)+_0x1ca836[_0x3bfab0(0x229)](_0x1ca836['user']['id'])+'*_'),user=''+_0x1ca836[_0x3bfab0(0x229)](_0x1ca836[_0x3bfab0(0x1e8)]['id']),txt=_0x3bfab0(0x21d)+user['split']('@')[0x0]+'_',_0x1f8a7b(_0x3bfab0(0x1f3),{'text':txt,'mentions':[user]}));if(_0x202e68===_0x3bfab0(0x1e4)){let _0x3e757f=new Boom(_0x3c8ec3?.[_0x3bfab0(0x21e)])?.[_0x3bfab0(0x20a)][_0x3bfab0(0x23c)];if(_0x3e757f===DisconnectReason[_0x3bfab0(0x20c)])console[_0x3bfab0(0x24d)](_0x3bfab0(0x1f1)),_0x1ca836['logout']();else{if(_0x3e757f===DisconnectReason[_0x3bfab0(0x211)])console['log'](_0x3bfab0(0x237)),_0x510cbd();else{if(_0x3e757f===DisconnectReason['connectionLost'])console[_0x3bfab0(0x24d)](_0x3bfab0(0x235)),_0x510cbd();else{if(_0x3e757f===DisconnectReason['connectionReplaced'])console[_0x3bfab0(0x24d)](_0x3bfab0(0x1f2)),_0x1ca836['logout']();else{if(_0x3e757f===DisconnectReason[_0x3bfab0(0x22c)])console[_0x3bfab0(0x24d)](_0x3bfab0(0x1fa)),_0x1ca836['logout']();else{if(_0x3e757f===DisconnectReason[_0x3bfab0(0x1e0)])console[_0x3bfab0(0x24d)](_0x3bfab0(0x1fe)),_0x510cbd();else{if(_0x3e757f===DisconnectReason[_0x3bfab0(0x1e6)])console[_0x3bfab0(0x24d)](_0x3bfab0(0x24c)),_0x510cbd();else _0x1ca836[_0x3bfab0(0x1fc)]('Unknown\x20DisconnectReason:\x20'+_0x3e757f+'|'+_0x202e68);}}}}}}}}),_0x1ca836[_0x1a2d6f(0x229)]=_0x4ebcfa=>{const _0x1ae208=_0x1a2d6f;if(!_0x4ebcfa)return _0x4ebcfa;if(/:\d+@/gi['test'](_0x4ebcfa)){let _0x1891bb=jidDecode(_0x4ebcfa)||{};return _0x1891bb[_0x1ae208(0x1e8)]&&_0x1891bb[_0x1ae208(0x21a)]&&_0x1891bb[_0x1ae208(0x1e8)]+'@'+_0x1891bb['server']||_0x4ebcfa;}else return _0x4ebcfa;},_0x1ca836['ev']['on'](_0x1a2d6f(0x205),_0xb16486=>{const _0x502ab1=_0x1a2d6f;for(let _0x58dc76 of _0xb16486){let _0x5b5b2d=_0x1ca836[_0x502ab1(0x229)](_0x58dc76['id']);if(store&&store[_0x502ab1(0x201)])store['contacts'][_0x5b5b2d]={'id':_0x5b5b2d,'name':_0x58dc76[_0x502ab1(0x22f)]};}}),_0x1ca836['getName']=(_0x21460f,_0x4577ee=![])=>{const _0xa6a456=_0x1a2d6f;id=_0x1ca836[_0xa6a456(0x229)](_0x21460f),_0x4577ee=_0x1ca836[_0xa6a456(0x1e2)]||_0x4577ee;let _0x4087d1;if(id[_0xa6a456(0x228)](_0xa6a456(0x1dd)))return new Promise(async _0x25b1cb=>{const _0x2c2386=_0xa6a456;_0x4087d1=store[_0x2c2386(0x201)][id]||{};if(!(_0x4087d1['name']||_0x4087d1[_0x2c2386(0x1e9)]))_0x4087d1=_0x1ca836['groupMetadata'](id)||{};_0x25b1cb(_0x4087d1[_0x2c2386(0x210)]||_0x4087d1[_0x2c2386(0x1e9)]||PhoneNumber('+'+id[_0x2c2386(0x21f)](_0x2c2386(0x1f3),''))[_0x2c2386(0x221)](_0x2c2386(0x1e3)));});else _0x4087d1=id===_0xa6a456(0x218)?{'id':id,'name':'WhatsApp'}:id===_0x1ca836[_0xa6a456(0x229)](_0x1ca836[_0xa6a456(0x1e8)]['id'])?_0x1ca836['user']:store[_0xa6a456(0x201)][id]||{};return(_0x4577ee?'':_0x4087d1[_0xa6a456(0x210)])||_0x4087d1[_0xa6a456(0x1e9)]||_0x4087d1[_0xa6a456(0x20b)]||PhoneNumber('+'+_0x21460f['replace'](_0xa6a456(0x1f3),''))[_0xa6a456(0x221)](_0xa6a456(0x1e3));},_0x1ca836[_0x1a2d6f(0x22a)]=(_0x19f48d='')=>{const _0x322030=_0x1a2d6f;return[..._0x19f48d[_0x322030(0x213)](/@([0-9]{5,16}|0)/g)][_0x322030(0x216)](_0x4bc22e=>_0x4bc22e[0x1]+'@s.whatsapp.net');},_0x1ca836['sendContact']=async(_0x65e0b0,_0x1edc0e,_0x273e12='',_0x355fee={})=>{const _0x374f48=_0x1a2d6f;let _0x340583=[];for(let _0x35418a of _0x1edc0e){_0x340583['push']({'displayName':await _0x1ca836[_0x374f48(0x232)](_0x35418a+_0x374f48(0x1f3)),'vcard':_0x374f48(0x236)+await _0x1ca836['getName'](_0x35418a+_0x374f48(0x1f3))+'\x0a\x0aFN:'+await _0x1ca836['getName'](_0x35418a+_0x374f48(0x1f3))+'\x0a\x0aitem1.TEL;waid='+_0x35418a+':'+_0x35418a+_0x374f48(0x238)});}_0x1ca836[_0x374f48(0x258)](_0x65e0b0,{'contacts':{'displayName':_0x340583[_0x374f48(0x1db)]+'\x20Kontak','contacts':_0x340583},..._0x355fee},{'quoted':_0x273e12});},_0x1ca836[_0x1a2d6f(0x23f)]=_0x23dc17=>{const _0x5497ea=_0x1a2d6f;return _0x1ca836[_0x5497ea(0x24f)]({'tag':'iq','attrs':{'to':_0x5497ea(0x1f3),'type':_0x5497ea(0x215),'xmlns':_0x5497ea(0x214)},'content':[{'tag':_0x5497ea(0x214),'attrs':{},'content':Buffer[_0x5497ea(0x244)](_0x23dc17,_0x5497ea(0x247))}]}),_0x23dc17;},_0x1ca836['downloadAndSaveMediaMessage']=async(_0x281775,_0xe080e2,_0x4638bc=!![])=>{const _0x204269=_0x1a2d6f;let _0x33435e=_0x281775['msg']?_0x281775[_0x204269(0x227)]:_0x281775,_0x20e293=(_0x281775['msg']||_0x281775)[_0x204269(0x223)]||'',_0x44b630=_0x281775[_0x204269(0x23a)]?_0x281775['mtype'][_0x204269(0x21f)](/Message/gi,''):_0x20e293['split']('/')[0x0];const _0x38e381=await downloadContentFromMessage(_0x33435e,_0x44b630);let _0x25e82b=Buffer[_0x204269(0x244)]([]);for await(const _0x1937aa of _0x38e381){_0x25e82b=Buffer[_0x204269(0x225)]([_0x25e82b,_0x1937aa]);}let _0x56e0d6=await FileType[_0x204269(0x249)](_0x25e82b);return trueFileName=_0x4638bc?_0xe080e2+'.'+_0x56e0d6[_0x204269(0x243)]:_0xe080e2,await fs['writeFileSync'](trueFileName,_0x25e82b),trueFileName;},_0x1ca836[_0x1a2d6f(0x202)]=async _0x1f3b11=>{const _0x46dd87=_0x1a2d6f;let _0x4ffb36=(_0x1f3b11['msg']||_0x1f3b11)[_0x46dd87(0x223)]||'',_0x469ec1=_0x1f3b11[_0x46dd87(0x23a)]?_0x1f3b11[_0x46dd87(0x23a)][_0x46dd87(0x21f)](/Message/gi,''):_0x4ffb36[_0x46dd87(0x1df)]('/')[0x0];const _0x508c34=await downloadContentFromMessage(_0x1f3b11,_0x469ec1);let _0x5b8f46=Buffer['from']([]);for await(const _0xb0dc3a of _0x508c34){_0x5b8f46=Buffer[_0x46dd87(0x225)]([_0x5b8f46,_0xb0dc3a]);}return _0x5b8f46;},_0x1ca836[_0x1a2d6f(0x1f6)]=(_0x13014e,_0x116638,_0x5d8d84='',_0x4e1ab8)=>_0x1ca836['sendMessage'](_0x13014e,{'text':_0x116638,..._0x4e1ab8},{'quoted':_0x5d8d84});}_0x510cbd();}catch(_0x2c3274){console[_0x178dbd(0x24d)](_0x2c3274);}};function _0x233d(_0x1bf92c,_0x3d8bb7){const _0x18e6c0=_0x18e6();return _0x233d=function(_0x233da0,_0x1cd72f){_0x233da0=_0x233da0-0x1db;let _0x4a3735=_0x18e6c0[_0x233da0];return _0x4a3735;},_0x233d(_0x1bf92c,_0x3d8bb7);}module['exports']={'jadibot':jadibot,'conns':conns};