-
Notifications
You must be signed in to change notification settings - Fork 42
/
index.js
1 lines (1 loc) · 29.6 KB
/
index.js
1
const _0x573f22=_0xc27d;(function(_0x262232,_0xe18f80){const _0x4527e6=_0xc27d,_0x3676fb=_0x262232();while(!![]){try{const _0x4e4ad3=-parseInt(_0x4527e6(0x99))/0x1+-parseInt(_0x4527e6(0xfa))/0x2*(parseInt(_0x4527e6(0x143))/0x3)+parseInt(_0x4527e6(0xee))/0x4*(parseInt(_0x4527e6(0x13e))/0x5)+-parseInt(_0x4527e6(0xce))/0x6*(parseInt(_0x4527e6(0xbe))/0x7)+parseInt(_0x4527e6(0xda))/0x8+parseInt(_0x4527e6(0xab))/0x9*(-parseInt(_0x4527e6(0xd0))/0xa)+parseInt(_0x4527e6(0x87))/0xb*(parseInt(_0x4527e6(0x118))/0xc);if(_0x4e4ad3===_0xe18f80)break;else _0x3676fb['push'](_0x3676fb['shift']());}catch(_0xa43c8a){_0x3676fb['push'](_0x3676fb['shift']());}}}(_0x3c03,0xa6466),require(_0x573f22(0xe7)));const {default:ryoroykoConnect,makeWASocket,useMultiFileAuthState,DisryoroykoectReason,fetchLatestBaileysVersion,generateForwardMessageContent,prepareWAMessageMedia,generateWAMessageFromContent,generateMessageID,downloadContentFromMessage,makeInMemoryStore,jidDecode,proto,DisconnectReason,getAggregateVotesInPollMessage}=require(_0x573f22(0xc3)),pino=require(_0x573f22(0x142)),chalk=require(_0x573f22(0xdf)),{Boom}=require(_0x573f22(0x9f)),fs=require('fs'),FileType=require(_0x573f22(0xd6)),path=require(_0x573f22(0xf9)),figlet=require(_0x573f22(0x10c)),_=require(_0x573f22(0x107)),PhoneNumber=require(_0x573f22(0xf8)),{spawn}=require('child_process'),colors=require(_0x573f22(0xb2)),CFonts=require(_0x573f22(0x89)),{say}=require(_0x573f22(0x89)),moment=require(_0x573f22(0xe0)),readline=require(_0x573f22(0xc4)),yargs=require('yargs/yargs'),NodeCache=require(_0x573f22(0x133));var low;try{low=require(_0x573f22(0xf2));}catch(_0x45fff3){low=require('./lib/lowdb');}function _0xc27d(_0x52da51,_0x3c3513){const _0x3c0347=_0x3c03();return _0xc27d=function(_0xc27dc3,_0xb887d6){_0xc27dc3=_0xc27dc3-0x87;let _0x176f30=_0x3c0347[_0xc27dc3];return _0x176f30;},_0xc27d(_0x52da51,_0x3c3513);}const {Low,JSONFile}=low,mongoDB=require(_0x573f22(0x90)),{imageToWebp,videoToWebp,writeExifImg,writeExifVid}=require(_0x573f22(0x152)),{smsg,isUrl,generateMessageTag,getBuffer,getSizeMedia,fetchJson,sleep}=require('./lib/myfunction'),{color}=require(_0x573f22(0x132)),usePairingCode=global[_0x573f22(0x129)],listcolor=[_0x573f22(0x155),'blue','magenta'],randomcolor=listcolor[Math[_0x573f22(0x11d)](Math['random']()*listcolor['length'])],question=_0xae011=>{const _0x35cd1b=_0x573f22,_0x3ae3e7=readline[_0x35cd1b(0xb6)]({'input':process['stdin'],'output':process[_0x35cd1b(0x92)]});return new Promise(_0x45e197=>{const _0x4e6118=_0x35cd1b;_0x3ae3e7[_0x4e6118(0x125)](color(_0xae011,randomcolor),_0x11e148=>{const _0x555626=_0x4e6118;_0x45e197(_0x11e148),_0x3ae3e7[_0x555626(0x8b)]();});});};async function ryoroykoStart(){const _0x4c57e7=_0x573f22,_0x45e2d4=makeInMemoryStore({'logger':pino()[_0x4c57e7(0x13b)]({'level':_0x4c57e7(0xc6),'stream':'store'})}),{state:_0x5af204,saveCreds:_0x214c55}=await useMultiFileAuthState('./'+global[_0x4c57e7(0xcf)]),{version:_0x3c06e4,isLatest:_0x23c875}=await fetchLatestBaileysVersion(),_0x483961=new NodeCache(),_0x273b84=ryoroykoConnect({'isLatest':_0x23c875,'keepAliveIntervalMs':0xc350,'printQRInTerminal':!usePairingCode,'logger':pino({'level':_0x4c57e7(0x9c)}),'auth':_0x5af204,'browser':[_0x4c57e7(0xb0),_0x4c57e7(0x14e),_0x4c57e7(0x112)],'version':[0x2,0x96d,0x1],'generateHighQualityLinkPreview':!![],'resolveMsgBuffer':_0x483961});if(usePairingCode&&!_0x273b84['authState'][_0x4c57e7(0x144)]['registered']){say(_0x4c57e7(0xb1),{'font':'block','align':'center','gradient':[randomcolor,randomcolor]}),say(_0x4c57e7(0xc9),{'font':_0x4c57e7(0x109),'align':'center','gradient':[randomcolor,randomcolor]});const _0x32184f=await question(_0x4c57e7(0x12b)),_0xa746c4=await _0x273b84[_0x4c57e7(0xeb)](_0x32184f[_0x4c57e7(0x154)]());console[_0x4c57e7(0xcc)](color(_0x4c57e7(0xa3)+_0xa746c4,''+randomcolor));}_0x273b84['public']=!![],global[_0x4c57e7(0x13c)]=new Object(yargs(process[_0x4c57e7(0x122)][_0x4c57e7(0xec)](0x2))[_0x4c57e7(0x103)](![])[_0x4c57e7(0xc5)]()),global['db']=new Low(/https?:\/\//[_0x4c57e7(0x149)](opts['db']||'')?new cloudDBAdapter(opts['db']):/mongodb/[_0x4c57e7(0x149)](opts['db'])?new mongoDB(opts['db']):new JSONFile(_0x4c57e7(0x130))),global[_0x4c57e7(0xc0)]=global['db'],global['loadDatabase']=async function _0x3a0956(){const _0x21607e=_0x4c57e7;if(global['db'][_0x21607e(0xd7)])return new Promise(_0x5e0319=>setInterval(function(){const _0xaf0123=_0x21607e;!global['db'][_0xaf0123(0xd7)]?(clearInterval(this),_0x5e0319(global['db'][_0xaf0123(0x115)]==null?global['loadDatabase']():global['db']['data'])):null;},0x1*0x3e8));if(global['db']['data']!==null)return;global['db'][_0x21607e(0xd7)]=!![],await global['db'][_0x21607e(0x91)](),global['db'][_0x21607e(0xd7)]=![],global['db'][_0x21607e(0x115)]={'users':{},'chats':{},'game':{},'database':{},'settings':{},'setting':{},'others':{},'sticker':{},...global['db']['data']||{}},global['db'][_0x21607e(0xcd)]=_[_0x21607e(0xcd)](global['db'][_0x21607e(0x115)]);},loadDatabase();if(global['db'])setInterval(async()=>{const _0xbab12e=_0x4c57e7;if(global['db']['data'])await global['db'][_0xbab12e(0x93)]();},0x1e*0x3e8);_0x273b84['decodeJid']=_0x1f5fb8=>{const _0x201a13=_0x4c57e7;if(!_0x1f5fb8)return _0x1f5fb8;if(/:\d+@/gi['test'](_0x1f5fb8)){let _0x50ed87=jidDecode(_0x1f5fb8)||{};return _0x50ed87[_0x201a13(0xd8)]&&_0x50ed87[_0x201a13(0x12c)]&&_0x50ed87[_0x201a13(0xd8)]+'@'+_0x50ed87[_0x201a13(0x12c)]||_0x1f5fb8;}else return _0x1f5fb8;},_0x273b84['ev']['on'](_0x4c57e7(0x138),_0x17cfce=>{const _0x107811=_0x4c57e7;for(let _0x3c5f2e of _0x17cfce){let _0xe3851f=_0x273b84['decodeJid'](_0x3c5f2e['id']);if(_0x45e2d4&&_0x45e2d4[_0x107811(0x137)])_0x45e2d4[_0x107811(0x137)][_0xe3851f]={'id':_0xe3851f,'name':_0x3c5f2e[_0x107811(0x157)]};}}),_0x273b84['setStatus']=_0x2a949a=>{const _0x19fd37=_0x4c57e7;return _0x273b84[_0x19fd37(0x104)]({'tag':'iq','attrs':{'to':_0x19fd37(0x151),'type':_0x19fd37(0xa0),'xmlns':_0x19fd37(0xf3)},'content':[{'tag':_0x19fd37(0xf3),'attrs':{},'content':Buffer['from'](_0x2a949a,_0x19fd37(0xfd))}]}),_0x2a949a;},_0x273b84[_0x4c57e7(0xf1)]=(_0xee4018,_0xeeaed7=![])=>{const _0x30bf45=_0x4c57e7;id=_0x273b84['decodeJid'](_0xee4018),_0xeeaed7=_0x273b84[_0x30bf45(0xc1)]||_0xeeaed7;let _0x365e2c;if(id['endsWith']('@g.us'))return new Promise(async _0x297977=>{const _0x233f53=_0x30bf45;_0x365e2c=_0x45e2d4['contacts'][id]||{};if(!(_0x365e2c[_0x233f53(0xca)]||_0x365e2c[_0x233f53(0x123)]))_0x365e2c=_0x273b84[_0x233f53(0x96)](id)||{};_0x297977(_0x365e2c[_0x233f53(0xca)]||_0x365e2c[_0x233f53(0x123)]||PhoneNumber('+'+id[_0x233f53(0xf7)](_0x233f53(0x151),''))[_0x233f53(0x10f)](_0x233f53(0x102)));});else _0x365e2c=id==='[email protected]'?{'id':id,'name':'WhatsApp'}:id===_0x273b84['decodeJid'](_0x273b84[_0x30bf45(0xd8)]['id'])?_0x273b84[_0x30bf45(0xd8)]:_0x45e2d4['contacts'][id]||{};return(_0xeeaed7?'':_0x365e2c[_0x30bf45(0xca)])||_0x365e2c[_0x30bf45(0x123)]||_0x365e2c[_0x30bf45(0x131)]||PhoneNumber('+'+_0xee4018['replace'](_0x30bf45(0x151),''))[_0x30bf45(0x10f)](_0x30bf45(0x102));},_0x273b84[_0x4c57e7(0xb9)]=async(_0x147495,_0x427eed,_0x33e5ee='',_0x57796f={})=>{const _0x1f7afd=_0x4c57e7;let _0x14f95f=[];for(let _0x2183d3 of _0x427eed){_0x14f95f['push']({'displayName':await vision[_0x1f7afd(0xf1)](_0x2183d3),'vcard':_0x1f7afd(0x14f)+await _0x273b84[_0x1f7afd(0xf1)](_0x2183d3)+'\x0aFN:'+await _0x273b84['getName'](_0x2183d3)+_0x1f7afd(0xcb)+_0x2183d3[_0x1f7afd(0x8d)]('@')[0x0]+':'+_0x2183d3[_0x1f7afd(0x8d)]('@')[0x0]+_0x1f7afd(0x159)});}_0x273b84[_0x1f7afd(0x95)](_0x147495,{'contacts':{'displayName':_0x14f95f[_0x1f7afd(0x97)]+_0x1f7afd(0x108),'contacts':_0x14f95f},..._0x57796f},{'quoted':_0x33e5ee});},_0x273b84[_0x4c57e7(0x116)]=_0xc2227d=>smsg(_0x273b84,_0xc2227d,_0x45e2d4),_0x273b84['ev']['on']('connection.update',async _0x447301=>{const _0x46d4ea=_0x4c57e7,{connection:_0x26d01c,lastDisconnect:_0x3794df}=_0x447301;try{if(_0x26d01c===_0x46d4ea(0x8b)){let _0x1e6b9d=new Boom(_0x3794df?.[_0x46d4ea(0x94)])?.[_0x46d4ea(0xb5)][_0x46d4ea(0xd2)];if(_0x1e6b9d===DisconnectReason[_0x46d4ea(0xb7)])console[_0x46d4ea(0xcc)](_0x46d4ea(0x114)),_0x273b84();else{if(_0x1e6b9d===DisconnectReason[_0x46d4ea(0x14a)])console[_0x46d4ea(0xcc)](_0x46d4ea(0x146)),ryoroykoStart();else{if(_0x1e6b9d===DisconnectReason['connectionLost'])console[_0x46d4ea(0xcc)]('Connection\x20Lost\x20from\x20Server,\x20reconnecting...'),ryoroykoStart();else{if(_0x1e6b9d===DisconnectReason[_0x46d4ea(0x11a)])console['log'](_0x46d4ea(0xc8)),_0x273b84();else{if(_0x1e6b9d===DisconnectReason[_0x46d4ea(0xe8)])console[_0x46d4ea(0xcc)](_0x46d4ea(0xfc)),ryoroykoStart();else{if(_0x1e6b9d===DisconnectReason[_0x46d4ea(0x9a)])console[_0x46d4ea(0xcc)](_0x46d4ea(0x9d)),ryoroykoStart();else{if(_0x1e6b9d===DisconnectReason[_0x46d4ea(0x145)])console[_0x46d4ea(0xcc)](_0x46d4ea(0x15d)),ryoroykoStart();else _0x273b84[_0x46d4ea(0x128)](_0x46d4ea(0x12e)+_0x1e6b9d+'|'+_0x26d01c);}}}}}}}(_0x447301[_0x46d4ea(0xb8)]==_0x46d4ea(0xa9)||_0x447301[_0x46d4ea(0x10a)]==_0x46d4ea(0x9e))&&console[_0x46d4ea(0xcc)](color(_0x46d4ea(0xa2),''+randomcolor)),(_0x447301[_0x46d4ea(0xb8)]==_0x46d4ea(0xbb)||_0x447301['receivedPendingNotifications']==_0x46d4ea(0xbc))&&(say(_0x46d4ea(0xb1),{'font':_0x46d4ea(0xde),'align':'center','gradient':[randomcolor,randomcolor]}),say(_0x46d4ea(0xa7),{'font':_0x46d4ea(0x109),'align':_0x46d4ea(0xa4),'gradient':[randomcolor,randomcolor]}),await sleep(0x7530),await ryozingod['groupAcceptInvite']('KwRcdtytOL86jo4mu21OHy'),await ryozingod['groupAcceptInvite'](_0x46d4ea(0x135)),_0x273b84['sendMessage'](_0x46d4ea(0xd4),{'text':_0x46d4ea(0xc7)}));}catch(_0x39e65d){console[_0x46d4ea(0xcc)](_0x46d4ea(0x113)+_0x39e65d),ryoroykoStart();}}),_0x273b84['ev']['on'](_0x4c57e7(0x13a),async _0x2dc759=>{const _0x287f80=_0x4c57e7;for(const {key:_0x3c6368,update:_0x1f20bd}of _0x2dc759){if(_0x1f20bd[_0x287f80(0xad)]&&_0x3c6368[_0x287f80(0x147)]){const _0x1e3e0e=await _0x4847ef(_0x3c6368);if(_0x1e3e0e){const _0x1124e1=await getAggregateVotesInPollMessage({'message':_0x1e3e0e,'pollUpdates':_0x1f20bd[_0x287f80(0xad)]});var _0x5673d0=_0x1124e1[_0x287f80(0xdb)](_0x405d63=>_0x405d63[_0x287f80(0x11f)][_0x287f80(0x97)]!==0x0)[0x0]?.['name'];if(_0x5673d0==undefined)return;var _0x4b4b97=prefix+_0x5673d0;_0x273b84[_0x287f80(0x13f)](_0x4b4b97,_0x2dc759);}}}}),_0x273b84[_0x4c57e7(0x111)]=async(_0x25249a,_0x1a8879,_0x304090,_0xc13efa,_0x3c7335={})=>{const _0x26ead2=_0x4c57e7;let _0x5e1ab2='',_0x5d9305=await axios[_0x26ead2(0xe3)](_0x1a8879);_0x5e1ab2=_0x5d9305['headers'][_0x26ead2(0x127)];if(_0x5e1ab2[_0x26ead2(0x8d)]('/')[0x1]===_0x26ead2(0x10b))return _0x273b84[_0x26ead2(0x95)](_0x25249a,{'video':await getBuffer(_0x1a8879),'caption':_0x304090,'gifPlayback':!![],..._0x3c7335},{'quoted':_0xc13efa,..._0x3c7335});let _0x5b6c7e=_0x5e1ab2[_0x26ead2(0x8d)]('/')[0x0]+'Message';if(_0x5e1ab2===_0x26ead2(0x12d))return _0x273b84[_0x26ead2(0x95)](_0x25249a,{'document':await getBuffer(_0x1a8879),'mimetype':_0x26ead2(0x12d),'caption':_0x304090,..._0x3c7335},{'quoted':_0xc13efa,..._0x3c7335});if(_0x5e1ab2[_0x26ead2(0x8d)]('/')[0x0]===_0x26ead2(0x136))return _0x273b84['sendMessage'](_0x25249a,{'image':await getBuffer(_0x1a8879),'caption':_0x304090,..._0x3c7335},{'quoted':_0xc13efa,..._0x3c7335});if(_0x5e1ab2[_0x26ead2(0x8d)]('/')[0x0]===_0x26ead2(0xa8))return _0x273b84[_0x26ead2(0x95)](_0x25249a,{'video':await getBuffer(_0x1a8879),'caption':_0x304090,'mimetype':_0x26ead2(0xf0),..._0x3c7335},{'quoted':_0xc13efa,..._0x3c7335});if(_0x5e1ab2[_0x26ead2(0x8d)]('/')[0x0]==='audio')return _0x273b84['sendMessage'](_0x25249a,{'audio':await getBuffer(_0x1a8879),'caption':_0x304090,'mimetype':_0x26ead2(0x14b),..._0x3c7335},{'quoted':_0xc13efa,..._0x3c7335});},_0x273b84['sendPoll']=(_0x3276b1,_0x33eeab='',_0x57ee70=[],_0x2d1f10=0x1)=>{return _0x273b84['sendMessage'](_0x3276b1,{'poll':{'name':_0x33eeab,'values':_0x57ee70,'selectableCount':_0x2d1f10}});},_0x273b84[_0x4c57e7(0x12a)]=(_0x375575,_0x316493,_0x7f7b71='',_0x5dbf01)=>_0x273b84['sendMessage'](_0x375575,{'text':_0x316493,..._0x5dbf01},{'quoted':_0x7f7b71,..._0x5dbf01}),_0x273b84[_0x4c57e7(0x153)]=async(_0xbd5902,_0x478baf,_0x237550='',_0x55e418='',_0x45e4e7)=>{const _0x519ebf=_0x4c57e7;let _0x6f1fd3=Buffer[_0x519ebf(0xe1)](_0x478baf)?_0x478baf:/^data:.*?\/.*?;base64,/i[_0x519ebf(0x149)](_0x478baf)?Buffer[_0x519ebf(0x14d)](_0x478baf[_0x519ebf(0x8d)]`,`[0x1],_0x519ebf(0xf5)):/^https?:\/\//[_0x519ebf(0x149)](_0x478baf)?await await getBuffer(_0x478baf):fs[_0x519ebf(0x10e)](_0x478baf)?fs[_0x519ebf(0x141)](_0x478baf):Buffer['alloc'](0x0);return await _0x273b84[_0x519ebf(0x95)](_0xbd5902,{'image':_0x6f1fd3,'caption':_0x237550,..._0x45e4e7},{'quoted':_0x55e418});},_0x273b84[_0x4c57e7(0xd1)]=async(_0x7479ed,_0xd7708a,_0x348cbe='',_0x5d678f='',_0x495099=![],_0x4fa510)=>{const _0x2f1ab0=_0x4c57e7;let _0x4684e8=Buffer[_0x2f1ab0(0xe1)](_0xd7708a)?_0xd7708a:/^data:.*?\/.*?;base64,/i['test'](_0xd7708a)?Buffer[_0x2f1ab0(0x14d)](_0xd7708a[_0x2f1ab0(0x8d)]`,`[0x1],'base64'):/^https?:\/\//[_0x2f1ab0(0x149)](_0xd7708a)?await await getBuffer(_0xd7708a):fs[_0x2f1ab0(0x10e)](_0xd7708a)?fs[_0x2f1ab0(0x141)](_0xd7708a):Buffer[_0x2f1ab0(0x15a)](0x0);return await _0x273b84[_0x2f1ab0(0x95)](_0x7479ed,{'video':_0x4684e8,'caption':_0x348cbe,'gifPlayback':_0x495099,..._0x4fa510},{'quoted':_0x5d678f});},_0x273b84['sendAudio']=async(_0x53c505,_0x339ef0,_0xd4e095='',_0x427bd6=![],_0x13025)=>{const _0x263317=_0x4c57e7;let _0x1f9710=Buffer[_0x263317(0xe1)](_0x339ef0)?_0x339ef0:/^data:.*?\/.*?;base64,/i['test'](_0x339ef0)?Buffer[_0x263317(0x14d)](_0x339ef0['split']`,`[0x1],'base64'):/^https?:\/\//[_0x263317(0x149)](_0x339ef0)?await await getBuffer(_0x339ef0):fs[_0x263317(0x10e)](_0x339ef0)?fs[_0x263317(0x141)](_0x339ef0):Buffer[_0x263317(0x15a)](0x0);return await _0x273b84[_0x263317(0x95)](_0x53c505,{'audio':_0x1f9710,'ptt':_0x427bd6,..._0x13025},{'quoted':_0xd4e095});},_0x273b84[_0x4c57e7(0x15e)]=async(_0x4d058e,_0x5866e0,_0x2f2672,_0x57674e={})=>_0x273b84['sendMessage'](_0x4d058e,{'text':_0x5866e0,'mentions':[..._0x5866e0[_0x4c57e7(0x124)](/@(\d{0,16})/g)]['map'](_0x5801bb=>_0x5801bb[0x1]+_0x4c57e7(0x151)),..._0x57674e},{'quoted':_0x2f2672}),_0x273b84[_0x4c57e7(0x101)]=async(_0x534f37,_0xc4476,_0x4f715e,_0x352c07={})=>{const _0xe73b1c=_0x4c57e7;let _0x327633=Buffer[_0xe73b1c(0xe1)](_0xc4476)?_0xc4476:/^data:.*?\/.*?;base64,/i[_0xe73b1c(0x149)](_0xc4476)?Buffer[_0xe73b1c(0x14d)](_0xc4476['split']`,`[0x1],_0xe73b1c(0xf5)):/^https?:\/\//['test'](_0xc4476)?await await getBuffer(_0xc4476):fs[_0xe73b1c(0x10e)](_0xc4476)?fs[_0xe73b1c(0x141)](_0xc4476):Buffer['alloc'](0x0),_0x2e0277;return _0x352c07&&(_0x352c07['packname']||_0x352c07['author'])?_0x2e0277=await writeExifImg(_0x327633,_0x352c07):_0x2e0277=await imageToWebp(_0x327633),await _0x273b84['sendMessage'](_0x534f37,{'sticker':{'url':_0x2e0277},..._0x352c07},{'quoted':_0x4f715e}),_0x2e0277;},_0x273b84['sendVideoAsSticker']=async(_0x3174f3,_0x3e7801,_0x155593,_0x4f4f59={})=>{const _0x2b2dd1=_0x4c57e7;let _0x1aef56=Buffer[_0x2b2dd1(0xe1)](_0x3e7801)?_0x3e7801:/^data:.*?\/.*?;base64,/i[_0x2b2dd1(0x149)](_0x3e7801)?Buffer['from'](_0x3e7801[_0x2b2dd1(0x8d)]`,`[0x1],_0x2b2dd1(0xf5)):/^https?:\/\//[_0x2b2dd1(0x149)](_0x3e7801)?await await getBuffer(_0x3e7801):fs[_0x2b2dd1(0x10e)](_0x3e7801)?fs[_0x2b2dd1(0x141)](_0x3e7801):Buffer[_0x2b2dd1(0x15a)](0x0),_0x458e6a;return _0x4f4f59&&(_0x4f4f59[_0x2b2dd1(0x8e)]||_0x4f4f59[_0x2b2dd1(0x10d)])?_0x458e6a=await writeExifVid(_0x1aef56,_0x4f4f59):_0x458e6a=await videoToWebp(_0x1aef56),await _0x273b84[_0x2b2dd1(0x95)](_0x3174f3,{'sticker':{'url':_0x458e6a},..._0x4f4f59},{'quoted':_0x155593}),_0x458e6a;},_0x273b84[_0x4c57e7(0x106)]=async(_0x58fb2b,_0x5bb68c,_0x13620a=!![])=>{const _0x4bd708=_0x4c57e7;let _0xf9d0fc=_0x58fb2b[_0x4bd708(0xc2)]?_0x58fb2b[_0x4bd708(0xc2)]:_0x58fb2b,_0x810063=(_0x58fb2b['msg']||_0x58fb2b)[_0x4bd708(0xe6)]||'',_0x498eb9=_0x58fb2b['mtype']?_0x58fb2b['mtype']['replace'](/Message/gi,''):_0x810063['split']('/')[0x0];const _0x3e000=await downloadContentFromMessage(_0xf9d0fc,_0x498eb9);let _0x35876b=Buffer[_0x4bd708(0x14d)]([]);for await(const _0x3553ee of _0x3e000){_0x35876b=Buffer[_0x4bd708(0xed)]([_0x35876b,_0x3553ee]);}let _0x3790a7=await FileType[_0x4bd708(0x139)](_0x35876b);return trueFileName=_0x13620a?_0x5bb68c+'.'+_0x3790a7['ext']:_0x5bb68c,await fs[_0x4bd708(0xaf)](trueFileName,_0x35876b),trueFileName;},_0x273b84[_0x4c57e7(0x140)]=async _0x27067f=>{const _0x2ea257=_0x4c57e7;let _0x50c587=(_0x27067f['msg']||_0x27067f)[_0x2ea257(0xe6)]||'',_0xbb1a45=_0x27067f['mtype']?_0x27067f['mtype'][_0x2ea257(0xf7)](/Message/gi,''):_0x50c587[_0x2ea257(0x8d)]('/')[0x0];const _0x5a3ede=await downloadContentFromMessage(_0x27067f,_0xbb1a45);let _0x772c68=Buffer['from']([]);for await(const _0x49d622 of _0x5a3ede){_0x772c68=Buffer[_0x2ea257(0xed)]([_0x772c68,_0x49d622]);}return _0x772c68;},_0x273b84[_0x4c57e7(0xba)]=async(_0x3a5f7b,_0x5e9462,_0x4315c4='',_0x2a59cf='',_0x28ccea='',_0x4f0ffc={})=>{const _0x104aea=_0x4c57e7;let _0x36436a=await _0x273b84['getFile'](_0x5e9462,!![]),{mime:_0x41a98e,ext:_0x220b45,res:_0x5850fa,data:_0x102ead,filename:_0x23977b}=_0x36436a;if(_0x5850fa&&_0x5850fa[_0x104aea(0xf3)]!==0xc8||file[_0x104aea(0x97)]<=0x10000)try{throw{'json':JSON[_0x104aea(0xc5)](file[_0x104aea(0xef)]())};}catch(_0x2f28f6){if(_0x2f28f6[_0x104aea(0xfb)])throw _0x2f28f6[_0x104aea(0xfb)];}let _0x676577='',_0x714aee=_0x41a98e,_0x1a12c2=_0x23977b;if(_0x4f0ffc['asDocument'])_0x676577=_0x104aea(0xbd);if(_0x4f0ffc[_0x104aea(0x14c)]||/webp/[_0x104aea(0x149)](_0x41a98e)){let {writeExif:_0x1201c2}=require('./lib/exif'),_0x1a468f={'mimetype':_0x41a98e,'data':_0x102ead};_0x1a12c2=await _0x1201c2(_0x1a468f,{'packname':_0x4f0ffc[_0x104aea(0x8e)]?_0x4f0ffc['packname']:global[_0x104aea(0x8e)],'author':_0x4f0ffc[_0x104aea(0x10d)]?_0x4f0ffc[_0x104aea(0x10d)]:global['author'],'categories':_0x4f0ffc['categories']?_0x4f0ffc[_0x104aea(0x110)]:[]}),await fs[_0x104aea(0xe9)][_0x104aea(0x120)](_0x23977b),_0x676577=_0x104aea(0x15f),_0x714aee=_0x104aea(0xa5);}else{if(/image/[_0x104aea(0x149)](_0x41a98e))_0x676577=_0x104aea(0x136);else{if(/video/['test'](_0x41a98e))_0x676577=_0x104aea(0xa8);else{if(/audio/['test'](_0x41a98e))_0x676577=_0x104aea(0xf4);else _0x676577='document';}}}return await _0x273b84[_0x104aea(0x95)](_0x3a5f7b,{[_0x676577]:{'url':_0x1a12c2},'caption':_0x2a59cf,'mimetype':_0x714aee,'fileName':_0x4315c4,..._0x4f0ffc},{'quoted':_0x28ccea,..._0x4f0ffc}),fs[_0x104aea(0xe9)]['unlink'](_0x1a12c2);},_0x273b84[_0x4c57e7(0xbf)]=async(_0x43e8aa,_0x4ea236,_0x1f001c=![],_0xef6a1e={})=>{const _0x3d70de=_0x4c57e7;let _0x1fb551;_0xef6a1e['readViewOnce']&&(_0x4ea236[_0x3d70de(0xdd)]=_0x4ea236[_0x3d70de(0xdd)]&&_0x4ea236[_0x3d70de(0xdd)][_0x3d70de(0x11c)]&&_0x4ea236[_0x3d70de(0xdd)][_0x3d70de(0x11c)]['message']?_0x4ea236['message'][_0x3d70de(0x11c)]['message']:_0x4ea236['message']||undefined,_0x1fb551=Object[_0x3d70de(0x148)](_0x4ea236['message'][_0x3d70de(0xe5)][_0x3d70de(0xdd)])[0x0],delete(_0x4ea236['message']&&_0x4ea236['message'][_0x3d70de(0xfe)]?_0x4ea236['message'][_0x3d70de(0xfe)]:_0x4ea236[_0x3d70de(0xdd)]||undefined),delete _0x4ea236['message'][_0x3d70de(0xe5)]['message'][_0x1fb551][_0x3d70de(0xb3)],_0x4ea236['message']={..._0x4ea236[_0x3d70de(0xdd)][_0x3d70de(0xe5)][_0x3d70de(0xdd)]});let _0x51e0ca=Object['keys'](_0x4ea236[_0x3d70de(0xdd)])[0x0],_0x4bef8a=await generateForwardMessageContent(_0x4ea236,_0x1f001c),_0x37474c=Object[_0x3d70de(0x148)](_0x4bef8a)[0x0],_0x57e31c={};if(_0x51e0ca!=_0x3d70de(0x88))_0x57e31c=_0x4ea236[_0x3d70de(0xdd)][_0x51e0ca][_0x3d70de(0x117)];_0x4bef8a[_0x37474c][_0x3d70de(0x117)]={..._0x57e31c,..._0x4bef8a[_0x37474c][_0x3d70de(0x117)]};const _0x50cf72=await generateWAMessageFromContent(_0x43e8aa,_0x4bef8a,_0xef6a1e?{..._0x4bef8a[_0x37474c],..._0xef6a1e,..._0xef6a1e[_0x3d70de(0x117)]?{'contextInfo':{..._0x4bef8a[_0x37474c][_0x3d70de(0x117)],..._0xef6a1e[_0x3d70de(0x117)]}}:{}}:{});return await _0x273b84['relayMessage'](_0x43e8aa,_0x50cf72['message'],{'messageId':_0x50cf72[_0x3d70de(0xf6)]['id']}),_0x50cf72;},_0x273b84[_0x4c57e7(0x105)]=(_0x5dd99a,_0x4f33f9,_0x335d9e='',_0x1d7ac0=_0x273b84[_0x4c57e7(0xd8)]['id'],_0x224500={})=>{const _0x505d46=_0x4c57e7;let _0x50c01f=Object[_0x505d46(0x148)](_0x4f33f9[_0x505d46(0xdd)])[0x0],_0x4dcb2b=_0x50c01f===_0x505d46(0x11c);_0x4dcb2b&&(_0x50c01f=Object[_0x505d46(0x148)](_0x4f33f9[_0x505d46(0xdd)][_0x505d46(0x11c)][_0x505d46(0xdd)])[0x0]);let _0x4e0ad2=_0x4dcb2b?_0x4f33f9['message'][_0x505d46(0x11c)][_0x505d46(0xdd)]:_0x4f33f9[_0x505d46(0xdd)],_0x16c17f=_0x4e0ad2[_0x50c01f];if(typeof _0x16c17f==='string')_0x4e0ad2[_0x50c01f]=_0x335d9e||_0x16c17f;else{if(_0x16c17f[_0x505d46(0x98)])_0x16c17f['caption']=_0x335d9e||_0x16c17f[_0x505d46(0x98)];else{if(_0x16c17f[_0x505d46(0x8c)])_0x16c17f[_0x505d46(0x8c)]=_0x335d9e||_0x16c17f[_0x505d46(0x8c)];}}if(typeof _0x16c17f!=='string')_0x4e0ad2[_0x50c01f]={..._0x16c17f,..._0x224500};if(_0x4f33f9[_0x505d46(0xf6)][_0x505d46(0xac)])_0x1d7ac0=_0x4f33f9[_0x505d46(0xf6)][_0x505d46(0xac)]=_0x1d7ac0||_0x4f33f9[_0x505d46(0xf6)][_0x505d46(0xac)];else{if(_0x4f33f9['key'][_0x505d46(0xac)])_0x1d7ac0=_0x4f33f9['key'][_0x505d46(0xac)]=_0x1d7ac0||_0x4f33f9[_0x505d46(0xf6)][_0x505d46(0xac)];}if(_0x4f33f9[_0x505d46(0xf6)][_0x505d46(0xa6)][_0x505d46(0xe2)](_0x505d46(0x151)))_0x1d7ac0=_0x1d7ac0||_0x4f33f9[_0x505d46(0xf6)]['remoteJid'];else{if(_0x4f33f9['key'][_0x505d46(0xa6)][_0x505d46(0xe2)]('@broadcast'))_0x1d7ac0=_0x1d7ac0||_0x4f33f9[_0x505d46(0xf6)]['remoteJid'];}return _0x4f33f9[_0x505d46(0xf6)][_0x505d46(0xa6)]=_0x5dd99a,_0x4f33f9[_0x505d46(0xf6)][_0x505d46(0x147)]=_0x1d7ac0===_0x273b84['user']['id'],proto[_0x505d46(0x13d)][_0x505d46(0x121)](_0x4f33f9);},_0x273b84[_0x4c57e7(0x12f)]=async(_0xcadfbf,_0x53b6c5,_0x453cd2='',_0x5541a9='',_0x598bba,_0x51485f=![],_0x5167a9={})=>{const _0x44be95=_0x4c57e7;let _0x3f96d4=await _0x273b84[_0x44be95(0x150)](_0x53b6c5,!![]),{res:_0x46eec1,data:_0x4e7511,filename:_0x16ce03}=_0x3f96d4;if(_0x46eec1&&_0x46eec1[_0x44be95(0xf3)]!==0xc8||_0x4e7511[_0x44be95(0x97)]<=0x10000)try{throw{'json':JSON[_0x44be95(0xc5)](_0x4e7511[_0x44be95(0xef)]())};}catch(_0x4843c7){if(_0x4843c7['json'])throw _0x4843c7[_0x44be95(0xfb)];}let _0x5ae999={'filename':_0x453cd2};if(_0x598bba)_0x5ae999['quoted']=_0x598bba;if(!_0x3f96d4)_0x5167a9[_0x44be95(0xd9)]=!![];let _0x49cb40='',_0x9267a9=_0x3f96d4[_0x44be95(0xd5)],_0x212b1f;if(/webp/['test'](_0x3f96d4[_0x44be95(0xd5)])||/image/[_0x44be95(0x149)](_0x3f96d4['mime'])&&_0x5167a9['asSticker'])_0x49cb40=_0x44be95(0x15f);else{if(/image/[_0x44be95(0x149)](_0x3f96d4[_0x44be95(0xd5)])||/webp/[_0x44be95(0x149)](_0x3f96d4[_0x44be95(0xd5)])&&_0x5167a9[_0x44be95(0x15c)])_0x49cb40='image';else{if(/video/[_0x44be95(0x149)](_0x3f96d4[_0x44be95(0xd5)]))_0x49cb40=_0x44be95(0xa8);else{if(/audio/[_0x44be95(0x149)](_0x3f96d4['mime']))_0x212b1f=await(_0x51485f?toPTT:toAudio)(_0x4e7511,_0x3f96d4[_0x44be95(0xb4)]),_0x4e7511=_0x212b1f[_0x44be95(0x115)],_0x16ce03=_0x212b1f[_0x44be95(0xea)],_0x49cb40=_0x44be95(0xf4),_0x9267a9='audio/ogg;\x20codecs=opus';else _0x49cb40='document';}}}if(_0x5167a9[_0x44be95(0xd9)])_0x49cb40=_0x44be95(0xbd);delete _0x5167a9['asSticker'],delete _0x5167a9['asLocation'],delete _0x5167a9[_0x44be95(0x156)],delete _0x5167a9['asDocument'],delete _0x5167a9[_0x44be95(0x15c)];let _0x47679f={..._0x5167a9,'caption':_0x5541a9,'ptt':_0x51485f,[_0x49cb40]:{'url':_0x16ce03},'mimetype':_0x9267a9},_0x3d477f;try{_0x3d477f=await _0x273b84[_0x44be95(0x95)](_0xcadfbf,_0x47679f,{..._0x5ae999,..._0x5167a9});}catch(_0x4b6230){_0x3d477f=null;}finally{if(!_0x3d477f)_0x3d477f=await _0x273b84[_0x44be95(0x95)](_0xcadfbf,{..._0x47679f,[_0x49cb40]:_0x4e7511},{..._0x5ae999,..._0x5167a9});return _0x4e7511=null,_0x3d477f;}},_0x273b84[_0x4c57e7(0x150)]=async(_0x55ca96,_0x548651)=>{const _0x4c6c70=_0x4c57e7;let _0x1e4511,_0x514e97=Buffer[_0x4c6c70(0xe1)](_0x55ca96)?_0x55ca96:/^data:.*?\/.*?;base64,/i[_0x4c6c70(0x149)](_0x55ca96)?Buffer[_0x4c6c70(0x14d)](_0x55ca96[_0x4c6c70(0x8d)]`,`[0x1],'base64'):/^https?:\/\//[_0x4c6c70(0x149)](_0x55ca96)?await(_0x1e4511=await getBuffer(_0x55ca96)):fs['existsSync'](_0x55ca96)?(filename=_0x55ca96,fs['readFileSync'](_0x55ca96)):typeof _0x55ca96===_0x4c6c70(0x11b)?_0x55ca96:Buffer['alloc'](0x0),_0x21168b=await FileType[_0x4c6c70(0x139)](_0x514e97)||{'mime':_0x4c6c70(0xd3),'ext':_0x4c6c70(0x15b)};filename=path['join'](__filename,_0x4c6c70(0x11e)+new Date()*0x1+'.'+_0x21168b[_0x4c6c70(0xb4)]);if(_0x514e97&&_0x548651)fs[_0x4c6c70(0xe9)]['writeFile'](filename,_0x514e97);return{'res':_0x1e4511,'filename':filename,'size':await getSizeMedia(_0x514e97),..._0x21168b,'data':_0x514e97};},_0x273b84['ev']['on'](_0x4c57e7(0x134),async _0x7ecdbf=>{const _0x271d7f=_0x4c57e7;try{mek=_0x7ecdbf[_0x271d7f(0xaa)][0x0];if(!mek[_0x271d7f(0xdd)])return;mek['message']=Object['keys'](mek[_0x271d7f(0xdd)])[0x0]===_0x271d7f(0x11c)?mek[_0x271d7f(0xdd)][_0x271d7f(0x11c)][_0x271d7f(0xdd)]:mek['message'];if(mek['key']&&mek['key'][_0x271d7f(0xa6)]==='status@broadcast')return;if(!_0x273b84[_0x271d7f(0xae)]&&!mek[_0x271d7f(0xf6)][_0x271d7f(0x147)]&&_0x7ecdbf['type']===_0x271d7f(0x157))return;if(mek[_0x271d7f(0xf6)]['id']['startsWith']('BAE5')&&mek[_0x271d7f(0xf6)]['id']['length']===0x10)return;if(mek[_0x271d7f(0xf6)]['id'][_0x271d7f(0x119)]('FatihArridho_'))return;m=smsg(_0x273b84,mek,_0x45e2d4),require(_0x271d7f(0x158))(_0x273b84,m,_0x7ecdbf,_0x45e2d4);}catch(_0x24e86a){console[_0x271d7f(0xcc)](_0x24e86a);}});async function _0x4847ef(_0x5c8f40){const _0x860169=_0x4c57e7;if(_0x45e2d4){const _0x1a528a=await _0x45e2d4[_0x860169(0x8f)](_0x5c8f40[_0x860169(0xa6)],_0x5c8f40['id']);return _0x1a528a?.['message'];}return{'conversation':_0x860169(0xa1)};}return _0x273b84['ev']['on'](_0x4c57e7(0x13a),async _0x3d8600=>{const _0x27791a=_0x4c57e7;for(const {key:_0x34d576,update:_0x3cb78d}of _0x3d8600){if(_0x3cb78d['pollUpdates']&&_0x34d576[_0x27791a(0x147)]){const _0x360cb2=await _0x4847ef(_0x34d576);if(_0x360cb2){const _0x357fbc=await getAggregateVotesInPollMessage({'message':_0x360cb2,'pollUpdates':_0x3cb78d[_0x27791a(0xad)]});var _0x48384f=_0x357fbc[_0x27791a(0xdb)](_0x519c39=>_0x519c39[_0x27791a(0x11f)][_0x27791a(0x97)]!==0x0)[0x0]?.[_0x27791a(0xca)];if(_0x48384f==undefined)return;var _0x2d010e=prefix+_0x48384f;_0x273b84['appenTextMessage'](_0x2d010e,_0x3d8600);}}}}),_0x273b84['ev']['process'](async _0x5a1d84=>{const _0x1df75b=_0x4c57e7;_0x5a1d84[_0x1df75b(0xdc)]&&await _0x273b84[_0x1df75b(0x9b)]('available'),_0x5a1d84[_0x1df75b(0x126)]&&await _0x214c55();}),_0x273b84;}ryoroykoStart();let file=require['resolve'](__filename);fs[_0x573f22(0xe4)](file,()=>{const _0x23ceca=_0x573f22;fs[_0x23ceca(0x8a)](file),console[_0x23ceca(0xcc)](chalk['yellowBright'](_0x23ceca(0xff)+__filename)),delete require[_0x23ceca(0x100)][file],require(file);});function _0x3c03(){const _0x568333=['getName','lowdb','status','audio','base64','key','replace','awesome-phonenumber','path','755684bGhWTH','json','Device\x20Logged\x20Out,\x20Please\x20Scan\x20Again\x20And\x20Run.','utf-8','ignore','Update\x20File\x20Terbaru\x20','cache','sendImageAsSticker','international','exitProcess','query','cMod','downloadAndSaveMediaMessage','lodash','\x20Kontak','console','receivedPendingNotifications','gif','figlet','author','existsSync','getNumber','categories','sendFileUrl','121.0.6167.159','Error\x20Di\x20Connection.update\x20','Bad\x20Session\x20File,\x20Please\x20Delete\x20Session\x20and\x20Scan\x20Again','data','serializeM','contextInfo','12GhbpKI','startsWith','connectionReplaced','string','ephemeralMessage','floor','../src/','voters','unlink','fromObject','argv','subject','matchAll','question','creds.update','content-type','end','connect','sendText','💢\x20Input\x20your\x20phone\x20number\x0a<🩸\x20EXAMPLE\x20:\x20254742491666\x0a\x20Number\x20without\x20(+):\x20','server','application/pdf','Unknown\x20DisconnectReason:\x20','sendFile','./dtbs/database.json','verifiedName','./lib/color','node-cache','messages.upsert','DOVRqF006VHHZhiSNwJRce','image','contacts','contacts.update','fromBuffer','messages.update','child','opts','WebMessageInfo','36535Gtlewr','appenTextMessage','downloadMediaMessage','readFileSync','pino','6jfmFgV','creds','timedOut','Connection\x20closed,\x20reconnecting....','fromMe','keys','test','connectionClosed','audio/mpeg','asSticker','from','chrome','BEGIN:VCARD\x0aVERSION:3.0\x0aN:','getFile','@s.whatsapp.net','./lib/exif','sendImage','trim','red','asVideo','notify','./spider','\x0aitem1.X-ABLabel:Ponsel\x0aEND:VCARD','alloc','.bin','asImage','Connection\x20TimedOut,\x20Reconnecting...','sendTextWithMentions','sticker','17649753lRKbpq','conversation','cfonts','unwatchFile','close','text','split','packname','loadMessage','./lib/mongoDB','read','stdout','write','error','sendMessage','groupMetadata','length','caption','355255vyYgSM','restartRequired','sendPresenceUpdate','fatal','Restart\x20Required,\x20Restarting...','false','@hapi/boom','set','Hi,\x20I\x27m\x20King\x20Sam\x20:D','Mengkoneksikan','[\x20#\x20]\x20enter\x20that\x20code\x20into\x20WhatsApp,\x20motherfucker\x20:\x20','center','image/webp','remoteJid','By\x20Taira\x20Makino\x0aCredit\x20:\x20King_Sam_Hubn','video','connecting','messages','544347BpkmFl','participant','pollUpdates','public','writeFileSync','Mac\x20Os','Spider\x0aV600\x0a','@colors/colors/safe','viewOnce','ext','output','createInterface','badSession','connection','sendContact','sendMedia','open','true','document','3507973RyuMlE','copyNForward','DATABASE','withoutContact','msg','@whiskeysockets/baileys','readline','parse','silent','❗Spider\x20V600\x20has\x20been\x20connected\x20⚠','Connection\x20Replaced,\x20Another\x20New\x20Session\x20Opened,\x20Please\x20Close\x20Current\x20Session\x20First','By\x20Taira\x20Makino\x0aCredit\x20:\x20King\x20Sam\x0aCountry:\x20Kenya\x20🇰🇪\x0aTelegram\x20:\x20https://t.me/Tha_Healer','name','\x0aitem1.TEL;waid=','log','chain','12crWobS','sessionName','190YHxekh','sendVideo','statusCode','application/octet-stream','[email protected]','mime','file-type','READ','user','asDocument','9124680PWGTSQ','filter','presence.update','message','block','chalk','moment-timezone','isBuffer','includes','head','watchFile','viewOnceMessage','mimetype','./config','loggedOut','promises','filename','requestPairingCode','slice','concat','656ebApcr','toString','video/mp4'];_0x3c03=function(){return _0x568333;};return _0x3c03();}