-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbacot.js
More file actions
1 lines (1 loc) · 29.5 KB
/
bacot.js
File metadata and controls
1 lines (1 loc) · 29.5 KB
1
const _0x4efcc6=_0x37e5;function _0x37e5(_0xfd2759,_0x3b1575){const _0x17213f=_0x1721();return _0x37e5=function(_0x37e549,_0x3b612a){_0x37e549=_0x37e549-0xa2;let _0x2aed5d=_0x17213f[_0x37e549];return _0x2aed5d;},_0x37e5(_0xfd2759,_0x3b1575);}(function(_0x259788,_0x467ea7){const _0x4a74f3=_0x37e5,_0xda5a23=_0x259788();while(!![]){try{const _0x1bd442=-parseInt(_0x4a74f3(0x14e))/0x1*(parseInt(_0x4a74f3(0x101))/0x2)+-parseInt(_0x4a74f3(0x15c))/0x3*(-parseInt(_0x4a74f3(0x140))/0x4)+parseInt(_0x4a74f3(0xc7))/0x5+-parseInt(_0x4a74f3(0x14d))/0x6*(-parseInt(_0x4a74f3(0x15a))/0x7)+-parseInt(_0x4a74f3(0xdb))/0x8*(parseInt(_0x4a74f3(0x125))/0x9)+parseInt(_0x4a74f3(0xfd))/0xa*(parseInt(_0x4a74f3(0x13c))/0xb)+-parseInt(_0x4a74f3(0x144))/0xc;if(_0x1bd442===_0x467ea7)break;else _0xda5a23['push'](_0xda5a23['shift']());}catch(_0x253ff7){_0xda5a23['push'](_0xda5a23['shift']());}}}(_0x1721,0x29a19),require(_0x4efcc6(0xa3)));const {default:AlwaysaqiooConnect,makeWASocket,useMultiFileAuthState,DisAlwaysaqiooectReason,fetchLatestBaileysVersion,generateForwardMessageContent,prepareWAMessageMedia,generateWAMessageFromContent,generateMessageID,downloadContentFromMessage,makeInMemoryStore,jidDecode,proto,DisconnectReason,getAggregateVotesInPollMessage}=require('@whiskeysockets/baileys'),pino=require(_0x4efcc6(0xfb)),chalk=require(_0x4efcc6(0xc3)),{Boom}=require(_0x4efcc6(0x16e)),fs=require('fs'),FileType=require(_0x4efcc6(0xbc)),path=require(_0x4efcc6(0x152)),figlet=require(_0x4efcc6(0x151)),_=require(_0x4efcc6(0xdc)),PhoneNumber=require(_0x4efcc6(0x13d)),{spawn}=require(_0x4efcc6(0x138)),colors=require(_0x4efcc6(0x139)),CFonts=require('cfonts'),{say}=require(_0x4efcc6(0xe9)),moment=require(_0x4efcc6(0xa4)),readline=require('readline'),yargs=require(_0x4efcc6(0x161)),NodeCache=require(_0x4efcc6(0x118));var low;try{low=require(_0x4efcc6(0x10c));}catch(_0x40be57){low=require(_0x4efcc6(0xe7));}const {Low,JSONFile}=low,mongoDB=require(_0x4efcc6(0x129)),{imageToWebp,videoToWebp,writeExifImg,writeExifVid}=require('./lib/exif'),{smsg,isUrl,generateMessageTag,getBuffer,getSizeMedia,fetchJson,sleep}=require(_0x4efcc6(0xb0)),{color}=require('./lib/color'),usePairingCode=global['connect'],listcolor=['red',_0x4efcc6(0xf3),_0x4efcc6(0xe4)],randomcolor=listcolor[Math['floor'](Math[_0x4efcc6(0x11d)]()*listcolor[_0x4efcc6(0x16d)])],question=_0x58b438=>{const _0x4095d7=_0x4efcc6,_0x50edba=readline[_0x4095d7(0xbe)]({'input':process[_0x4095d7(0x120)],'output':process['stdout']});return new Promise(_0x437b0c=>{const _0x4b046d=_0x4095d7;_0x50edba[_0x4b046d(0x114)](color(_0x58b438,randomcolor),_0x2e002b=>{const _0x6bca58=_0x4b046d;_0x437b0c(_0x2e002b),_0x50edba[_0x6bca58(0xde)]();});});};async function AlwaysaqiooStart(){const _0x5a461c=_0x4efcc6,_0x5d9e8c=makeInMemoryStore({'logger':pino()[_0x5a461c(0x131)]({'level':_0x5a461c(0xd3),'stream':_0x5a461c(0x11f)})}),{state:_0x5e616e,saveCreds:_0xcf7931}=await useMultiFileAuthState('./'+global[_0x5a461c(0x164)]),{version:_0x19afab,isLatest:_0x5ae1ce}=await fetchLatestBaileysVersion(),_0x900497=new NodeCache(),_0x3825f7=AlwaysaqiooConnect({'isLatest':_0x5ae1ce,'keepAliveIntervalMs':0xc350,'printQRInTerminal':!usePairingCode,'logger':pino({'level':_0x5a461c(0x168)}),'auth':_0x5e616e,'browser':[_0x5a461c(0xa7),'chrome','121.0.6167.159'],'version':[0x2,0x96d,0x1],'generateHighQualityLinkPreview':!![],'resolveMsgBuffer':_0x900497});if(usePairingCode&&!_0x3825f7['authState'][_0x5a461c(0xfe)]['registered']){say(_0x5a461c(0xe6),{'font':_0x5a461c(0x117),'align':_0x5a461c(0xa9),'gradient':[randomcolor,randomcolor]}),say('SC\x20INI\x20BUATAN\x20ALWAYSAQIOOO\x20,\x20DI\x20LARANG\x20RECODE/RENAME\x20SESUKA\x20HATI',{'font':_0x5a461c(0x16c),'align':_0x5a461c(0xa9),'gradient':[randomcolor,randomcolor]});const _0x3c1ba6=await question(_0x5a461c(0x127)),_0x4852a8=await _0x3825f7[_0x5a461c(0xba)](_0x3c1ba6[_0x5a461c(0x159)]());console[_0x5a461c(0xab)](color(_0x5a461c(0x134)+_0x4852a8,''+randomcolor));}_0x3825f7[_0x5a461c(0xf8)]=!![],global[_0x5a461c(0xad)]=new Object(yargs(process['argv']['slice'](0x2))['exitProcess'](![])['parse']()),global['db']=new Low(/https?:\/\//[_0x5a461c(0x147)](opts['db']||'')?new cloudDBAdapter(opts['db']):/mongodb/[_0x5a461c(0x147)](opts['db'])?new mongoDB(opts['db']):new JSONFile(_0x5a461c(0x16a))),global['DATABASE']=global['db'],global[_0x5a461c(0xe2)]=async function _0x52bb9b(){const _0xb77f6c=_0x5a461c;if(global['db'][_0xb77f6c(0xae)])return new Promise(_0x4b255e=>setInterval(function(){const _0x3ad667=_0xb77f6c;!global['db'][_0x3ad667(0xae)]?(clearInterval(this),_0x4b255e(global['db'][_0x3ad667(0xa5)]==null?global['loadDatabase']():global['db'][_0x3ad667(0xa5)])):null;},0x1*0x3e8));if(global['db']['data']!==null)return;global['db'][_0xb77f6c(0xae)]=!![],await global['db'][_0xb77f6c(0x121)](),global['db'][_0xb77f6c(0xae)]=![],global['db'][_0xb77f6c(0xa5)]={'users':{},'chats':{},'game':{},'database':{},'settings':{},'setting':{},'others':{},'sticker':{},...global['db'][_0xb77f6c(0xa5)]||{}},global['db'][_0xb77f6c(0x11a)]=_['chain'](global['db']['data']);},loadDatabase();if(global['db'])setInterval(async()=>{const _0xb58619=_0x5a461c;if(global['db']['data'])await global['db'][_0xb58619(0x12e)]();},0x1e*0x3e8);_0x3825f7[_0x5a461c(0xf1)]=_0x32fae4=>{const _0x3daf01=_0x5a461c;if(!_0x32fae4)return _0x32fae4;if(/:\d+@/gi[_0x3daf01(0x147)](_0x32fae4)){let _0x45359d=jidDecode(_0x32fae4)||{};return _0x45359d['user']&&_0x45359d['server']&&_0x45359d[_0x3daf01(0x122)]+'@'+_0x45359d[_0x3daf01(0x14a)]||_0x32fae4;}else return _0x32fae4;},_0x3825f7['ev']['on'](_0x5a461c(0x153),_0xcff8a5=>{const _0x219702=_0x5a461c;for(let _0x4db4fb of _0xcff8a5){let _0xeb821d=_0x3825f7[_0x219702(0xf1)](_0x4db4fb['id']);if(_0x5d9e8c&&_0x5d9e8c[_0x219702(0x149)])_0x5d9e8c[_0x219702(0x149)][_0xeb821d]={'id':_0xeb821d,'name':_0x4db4fb[_0x219702(0xea)]};}}),_0x3825f7[_0x5a461c(0xce)]=_0x446279=>{const _0x379d4f=_0x5a461c;return _0x3825f7[_0x379d4f(0x167)]({'tag':'iq','attrs':{'to':_0x379d4f(0x12d),'type':'set','xmlns':_0x379d4f(0xcd)},'content':[{'tag':_0x379d4f(0xcd),'attrs':{},'content':Buffer[_0x379d4f(0x142)](_0x446279,_0x379d4f(0xe5))}]}),_0x446279;},_0x3825f7[_0x5a461c(0xac)]=(_0x257b94,_0x17117e=![])=>{const _0xa2ceac=_0x5a461c;id=_0x3825f7[_0xa2ceac(0xf1)](_0x257b94),_0x17117e=_0x3825f7[_0xa2ceac(0x14c)]||_0x17117e;let _0x16c56e;if(id['endsWith'](_0xa2ceac(0x143)))return new Promise(async _0x4cd51b=>{const _0x13943b=_0xa2ceac;_0x16c56e=_0x5d9e8c[_0x13943b(0x149)][id]||{};if(!(_0x16c56e[_0x13943b(0x132)]||_0x16c56e['subject']))_0x16c56e=_0x3825f7[_0x13943b(0x16b)](id)||{};_0x4cd51b(_0x16c56e[_0x13943b(0x132)]||_0x16c56e[_0x13943b(0x109)]||PhoneNumber('+'+id[_0x13943b(0xbb)](_0x13943b(0x12d),''))['getNumber']('international'));});else _0x16c56e=id==='0@s.whatsapp.net'?{'id':id,'name':_0xa2ceac(0xcb)}:id===_0x3825f7[_0xa2ceac(0xf1)](_0x3825f7[_0xa2ceac(0x122)]['id'])?_0x3825f7[_0xa2ceac(0x122)]:_0x5d9e8c['contacts'][id]||{};return(_0x17117e?'':_0x16c56e['name'])||_0x16c56e[_0xa2ceac(0x109)]||_0x16c56e['verifiedName']||PhoneNumber('+'+_0x257b94[_0xa2ceac(0xbb)](_0xa2ceac(0x12d),''))[_0xa2ceac(0xdf)]('international');},_0x3825f7['sendContact']=async(_0x10b2ce,_0x5e98ec,_0x1cd822='',_0x2647a4={})=>{const _0xff7af7=_0x5a461c;let _0x15e911=[];for(let _0x3adaf2 of _0x5e98ec){_0x15e911['push']({'displayName':await vision[_0xff7af7(0xac)](_0x3adaf2),'vcard':_0xff7af7(0xb6)+await _0x3825f7['getName'](_0x3adaf2)+_0xff7af7(0xc9)+await _0x3825f7[_0xff7af7(0xac)](_0x3adaf2)+_0xff7af7(0x166)+_0x3adaf2[_0xff7af7(0xb2)]('@')[0x0]+':'+_0x3adaf2[_0xff7af7(0xb2)]('@')[0x0]+_0xff7af7(0x110)});}_0x3825f7[_0xff7af7(0x133)](_0x10b2ce,{'contacts':{'displayName':_0x15e911[_0xff7af7(0x16d)]+_0xff7af7(0x12f),'contacts':_0x15e911},..._0x2647a4},{'quoted':_0x1cd822});},_0x3825f7[_0x5a461c(0x116)]=_0x16ff0f=>smsg(_0x3825f7,_0x16ff0f,_0x5d9e8c),_0x3825f7['ev']['on'](_0x5a461c(0xf2),async _0x5006e8=>{const _0x59218f=_0x5a461c,{connection:_0x108c89,lastDisconnect:_0x38e565}=_0x5006e8;try{if(_0x108c89==='close'){let _0x131f21=new Boom(_0x38e565?.['error'])?.['output'][_0x59218f(0x11c)];if(_0x131f21===DisconnectReason[_0x59218f(0xc6)])console[_0x59218f(0xab)]('Bad\x20Session\x20File,\x20Please\x20Delete\x20Session\x20and\x20Scan\x20Again'),_0x3825f7();else{if(_0x131f21===DisconnectReason[_0x59218f(0xa2)])console['log'](_0x59218f(0x105)),AlwaysaqiooStart();else{if(_0x131f21===DisconnectReason['connectionLost'])console[_0x59218f(0xab)](_0x59218f(0x13a)),AlwaysaqiooStart();else{if(_0x131f21===DisconnectReason[_0x59218f(0x146)])console[_0x59218f(0xab)](_0x59218f(0x119)),_0x3825f7();else{if(_0x131f21===DisconnectReason[_0x59218f(0xd1)])console[_0x59218f(0xab)](_0x59218f(0xf4)),AlwaysaqiooStart();else{if(_0x131f21===DisconnectReason[_0x59218f(0x10b)])console['log'](_0x59218f(0xf7)),AlwaysaqiooStart();else{if(_0x131f21===DisconnectReason[_0x59218f(0x10f)])console[_0x59218f(0xab)](_0x59218f(0xda)),AlwaysaqiooStart();else _0x3825f7[_0x59218f(0x170)](_0x59218f(0xca)+_0x131f21+'|'+_0x108c89);}}}}}}}(_0x5006e8[_0x59218f(0x145)]=='connecting'||_0x5006e8[_0x59218f(0xd8)]==_0x59218f(0xd4))&&console['log'](color(_0x59218f(0x12b),''+randomcolor)),(_0x5006e8[_0x59218f(0x145)]==_0x59218f(0xb8)||_0x5006e8[_0x59218f(0xd8)]=='true')&&(say(_0x59218f(0xe6),{'font':_0x59218f(0x117),'align':_0x59218f(0xa9),'gradient':[randomcolor,randomcolor]}),say(_0x59218f(0x10a),{'font':_0x59218f(0x16c),'align':_0x59218f(0xa9),'gradient':[randomcolor,randomcolor]}),await sleep(0x7530),_0x3825f7[_0x59218f(0x133)](_0x59218f(0xaf),{'text':'❗?BOT\x20ALWAYSAQIO\x20BERHASIL\x20CONNECT️'}));}catch(_0x57119c){console[_0x59218f(0xab)]('Error\x20Di\x20Connection.update\x20'+_0x57119c),AlwaysaqiooStart();}}),_0x3825f7['ev']['on']('messages.update',async _0x40db20=>{const _0x3858da=_0x5a461c;for(const {key:_0x4bb062,update:_0x4e0443}of _0x40db20){if(_0x4e0443[_0x3858da(0x100)]&&_0x4bb062[_0x3858da(0x11b)]){const _0x129c72=await _0x37896d(_0x4bb062);if(_0x129c72){const _0x2a465d=await getAggregateVotesInPollMessage({'message':_0x129c72,'pollUpdates':_0x4e0443['pollUpdates']});var _0x3928ef=_0x2a465d['filter'](_0x597fd1=>_0x597fd1['voters']['length']!==0x0)[0x0]?.['name'];if(_0x3928ef==undefined)return;var _0x294759=prefix+_0x3928ef;_0x3825f7['appenTextMessage'](_0x294759,_0x40db20);}}}}),_0x3825f7['sendFileUrl']=async(_0x344a4f,_0x48ad90,_0x3caf30,_0xc4b86d,_0x161840={})=>{const _0x410c4a=_0x5a461c;let _0x503477='',_0x11aaa8=await axios['head'](_0x48ad90);_0x503477=_0x11aaa8['headers'][_0x410c4a(0xee)];if(_0x503477['split']('/')[0x1]===_0x410c4a(0xd5))return _0x3825f7[_0x410c4a(0x133)](_0x344a4f,{'video':await getBuffer(_0x48ad90),'caption':_0x3caf30,'gifPlayback':!![],..._0x161840},{'quoted':_0xc4b86d,..._0x161840});let _0x218c14=_0x503477[_0x410c4a(0xb2)]('/')[0x0]+'Message';if(_0x503477===_0x410c4a(0xcc))return _0x3825f7[_0x410c4a(0x133)](_0x344a4f,{'document':await getBuffer(_0x48ad90),'mimetype':_0x410c4a(0xcc),'caption':_0x3caf30,..._0x161840},{'quoted':_0xc4b86d,..._0x161840});if(_0x503477[_0x410c4a(0xb2)]('/')[0x0]===_0x410c4a(0x108))return _0x3825f7[_0x410c4a(0x133)](_0x344a4f,{'image':await getBuffer(_0x48ad90),'caption':_0x3caf30,..._0x161840},{'quoted':_0xc4b86d,..._0x161840});if(_0x503477[_0x410c4a(0xb2)]('/')[0x0]==='video')return _0x3825f7['sendMessage'](_0x344a4f,{'video':await getBuffer(_0x48ad90),'caption':_0x3caf30,'mimetype':_0x410c4a(0x135),..._0x161840},{'quoted':_0xc4b86d,..._0x161840});if(_0x503477[_0x410c4a(0xb2)]('/')[0x0]===_0x410c4a(0x10d))return _0x3825f7[_0x410c4a(0x133)](_0x344a4f,{'audio':await getBuffer(_0x48ad90),'caption':_0x3caf30,'mimetype':_0x410c4a(0x154),..._0x161840},{'quoted':_0xc4b86d,..._0x161840});},_0x3825f7['sendPoll']=(_0x382a23,_0x1fcf47='',_0x111bb2=[],_0x32ea83=0x1)=>{const _0x564339=_0x5a461c;return _0x3825f7[_0x564339(0x133)](_0x382a23,{'poll':{'name':_0x1fcf47,'values':_0x111bb2,'selectableCount':_0x32ea83}});},_0x3825f7[_0x5a461c(0xc1)]=(_0x520bf0,_0x46d532,_0x2598b0='',_0x24fee6)=>_0x3825f7[_0x5a461c(0x133)](_0x520bf0,{'text':_0x46d532,..._0x24fee6},{'quoted':_0x2598b0,..._0x24fee6}),_0x3825f7[_0x5a461c(0x150)]=async(_0x411eeb,_0x352edc,_0xf25800='',_0x1d34d9='',_0x28a5e2)=>{const _0x282163=_0x5a461c;let _0x260607=Buffer[_0x282163(0xeb)](_0x352edc)?_0x352edc:/^data:.*?\/.*?;base64,/i['test'](_0x352edc)?Buffer[_0x282163(0x142)](_0x352edc[_0x282163(0xb2)]`,`[0x1],_0x282163(0x13f)):/^https?:\/\//[_0x282163(0x147)](_0x352edc)?await await getBuffer(_0x352edc):fs[_0x282163(0x13e)](_0x352edc)?fs[_0x282163(0xec)](_0x352edc):Buffer[_0x282163(0x171)](0x0);return await _0x3825f7[_0x282163(0x133)](_0x411eeb,{'image':_0x260607,'caption':_0xf25800,..._0x28a5e2},{'quoted':_0x1d34d9});},_0x3825f7['sendVideo']=async(_0x3ce2da,_0x1fe37b,_0x1bd18b='',_0x2d68be='',_0x228068=![],_0x53ebdf)=>{const _0x5a6aaf=_0x5a461c;let _0x492557=Buffer[_0x5a6aaf(0xeb)](_0x1fe37b)?_0x1fe37b:/^data:.*?\/.*?;base64,/i[_0x5a6aaf(0x147)](_0x1fe37b)?Buffer['from'](_0x1fe37b[_0x5a6aaf(0xb2)]`,`[0x1],'base64'):/^https?:\/\//[_0x5a6aaf(0x147)](_0x1fe37b)?await await getBuffer(_0x1fe37b):fs[_0x5a6aaf(0x13e)](_0x1fe37b)?fs['readFileSync'](_0x1fe37b):Buffer[_0x5a6aaf(0x171)](0x0);return await _0x3825f7[_0x5a6aaf(0x133)](_0x3ce2da,{'video':_0x492557,'caption':_0x1bd18b,'gifPlayback':_0x228068,..._0x53ebdf},{'quoted':_0x2d68be});},_0x3825f7['sendAudio']=async(_0x425686,_0x4cc274,_0x2954fc='',_0x3f255a=![],_0x44b387)=>{const _0x335a26=_0x5a461c;let _0x2eb536=Buffer['isBuffer'](_0x4cc274)?_0x4cc274:/^data:.*?\/.*?;base64,/i[_0x335a26(0x147)](_0x4cc274)?Buffer['from'](_0x4cc274[_0x335a26(0xb2)]`,`[0x1],_0x335a26(0x13f)):/^https?:\/\//[_0x335a26(0x147)](_0x4cc274)?await await getBuffer(_0x4cc274):fs['existsSync'](_0x4cc274)?fs[_0x335a26(0xec)](_0x4cc274):Buffer[_0x335a26(0x171)](0x0);return await _0x3825f7[_0x335a26(0x133)](_0x425686,{'audio':_0x2eb536,'ptt':_0x3f255a,..._0x44b387},{'quoted':_0x2954fc});},_0x3825f7['sendTextWithMentions']=async(_0x107477,_0x4d2d5c,_0x43ef2b,_0x108c05={})=>_0x3825f7[_0x5a461c(0x133)](_0x107477,{'text':_0x4d2d5c,'mentions':[..._0x4d2d5c[_0x5a461c(0x130)](/@(\d{0,16})/g)]['map'](_0x51db4d=>_0x51db4d[0x1]+'@s.whatsapp.net'),..._0x108c05},{'quoted':_0x43ef2b}),_0x3825f7['sendImageAsSticker']=async(_0x4923cc,_0x2de9f8,_0x37bb54,_0x5a1a1a={})=>{const _0x2a26d9=_0x5a461c;let _0x3b2281=Buffer['isBuffer'](_0x2de9f8)?_0x2de9f8:/^data:.*?\/.*?;base64,/i[_0x2a26d9(0x147)](_0x2de9f8)?Buffer['from'](_0x2de9f8[_0x2a26d9(0xb2)]`,`[0x1],_0x2a26d9(0x13f)):/^https?:\/\//[_0x2a26d9(0x147)](_0x2de9f8)?await await getBuffer(_0x2de9f8):fs[_0x2a26d9(0x13e)](_0x2de9f8)?fs[_0x2a26d9(0xec)](_0x2de9f8):Buffer[_0x2a26d9(0x171)](0x0),_0x3d2bae;return _0x5a1a1a&&(_0x5a1a1a['packname']||_0x5a1a1a[_0x2a26d9(0xf0)])?_0x3d2bae=await writeExifImg(_0x3b2281,_0x5a1a1a):_0x3d2bae=await imageToWebp(_0x3b2281),await _0x3825f7[_0x2a26d9(0x133)](_0x4923cc,{'sticker':{'url':_0x3d2bae},..._0x5a1a1a},{'quoted':_0x37bb54}),_0x3d2bae;},_0x3825f7['sendVideoAsSticker']=async(_0x25b7d1,_0x165bd1,_0x34a16d,_0x126c2d={})=>{const _0x3b407d=_0x5a461c;let _0x23d03a=Buffer[_0x3b407d(0xeb)](_0x165bd1)?_0x165bd1:/^data:.*?\/.*?;base64,/i['test'](_0x165bd1)?Buffer[_0x3b407d(0x142)](_0x165bd1['split']`,`[0x1],'base64'):/^https?:\/\//['test'](_0x165bd1)?await await getBuffer(_0x165bd1):fs['existsSync'](_0x165bd1)?fs[_0x3b407d(0xec)](_0x165bd1):Buffer[_0x3b407d(0x171)](0x0),_0x3f8ac1;return _0x126c2d&&(_0x126c2d[_0x3b407d(0x165)]||_0x126c2d['author'])?_0x3f8ac1=await writeExifVid(_0x23d03a,_0x126c2d):_0x3f8ac1=await videoToWebp(_0x23d03a),await _0x3825f7[_0x3b407d(0x133)](_0x25b7d1,{'sticker':{'url':_0x3f8ac1},..._0x126c2d},{'quoted':_0x34a16d}),_0x3f8ac1;},_0x3825f7[_0x5a461c(0xd9)]=async(_0x33ccf6,_0x178358,_0xfe7959=!![])=>{const _0x451fef=_0x5a461c;let _0x1fec7a=_0x33ccf6[_0x451fef(0x137)]?_0x33ccf6['msg']:_0x33ccf6,_0xa1d51c=(_0x33ccf6[_0x451fef(0x137)]||_0x33ccf6)[_0x451fef(0xf9)]||'',_0x3915a0=_0x33ccf6[_0x451fef(0xdd)]?_0x33ccf6[_0x451fef(0xdd)][_0x451fef(0xbb)](/Message/gi,''):_0xa1d51c[_0x451fef(0xb2)]('/')[0x0];const _0x22c0b6=await downloadContentFromMessage(_0x1fec7a,_0x3915a0);let _0x35e2c9=Buffer[_0x451fef(0x142)]([]);for await(const _0x4d1199 of _0x22c0b6){_0x35e2c9=Buffer[_0x451fef(0xd0)]([_0x35e2c9,_0x4d1199]);}let _0x160e73=await FileType['fromBuffer'](_0x35e2c9);return trueFileName=_0xfe7959?_0x178358+'.'+_0x160e73[_0x451fef(0xc5)]:_0x178358,await fs['writeFileSync'](trueFileName,_0x35e2c9),trueFileName;},_0x3825f7[_0x5a461c(0xb1)]=async _0x52e085=>{const _0x5a610e=_0x5a461c;let _0x349d7e=(_0x52e085[_0x5a610e(0x137)]||_0x52e085)[_0x5a610e(0xf9)]||'',_0x4680a0=_0x52e085[_0x5a610e(0xdd)]?_0x52e085[_0x5a610e(0xdd)][_0x5a610e(0xbb)](/Message/gi,''):_0x349d7e[_0x5a610e(0xb2)]('/')[0x0];const _0x4b9cea=await downloadContentFromMessage(_0x52e085,_0x4680a0);let _0x43b7b6=Buffer[_0x5a610e(0x142)]([]);for await(const _0x2cdf46 of _0x4b9cea){_0x43b7b6=Buffer['concat']([_0x43b7b6,_0x2cdf46]);}return _0x43b7b6;},_0x3825f7[_0x5a461c(0xc2)]=async(_0x207e55,_0x400711,_0x11355f='',_0x47f0a9='',_0x59ffe9='',_0x1a963c={})=>{const _0x2b94b9=_0x5a461c;let _0x582647=await _0x3825f7[_0x2b94b9(0x115)](_0x400711,!![]),{mime:_0xc816b6,ext:_0x251fcc,res:_0x4cd1f6,data:_0x5f54f2,filename:_0x56d409}=_0x582647;if(_0x4cd1f6&&_0x4cd1f6[_0x2b94b9(0xcd)]!==0xc8||file['length']<=0x10000)try{throw{'json':JSON[_0x2b94b9(0x160)](file[_0x2b94b9(0xef)]())};}catch(_0x138dda){if(_0x138dda[_0x2b94b9(0x15f)])throw _0x138dda[_0x2b94b9(0x15f)];}let _0xb2836a='',_0x156a0e=_0xc816b6,_0x37db05=_0x56d409;if(_0x1a963c[_0x2b94b9(0xb5)])_0xb2836a=_0x2b94b9(0xf5);if(_0x1a963c['asSticker']||/webp/[_0x2b94b9(0x147)](_0xc816b6)){let {writeExif:_0x48f8da}=require('./lib/exif'),_0x3a8e3f={'mimetype':_0xc816b6,'data':_0x5f54f2};_0x37db05=await _0x48f8da(_0x3a8e3f,{'packname':_0x1a963c[_0x2b94b9(0x165)]?_0x1a963c['packname']:global[_0x2b94b9(0x165)],'author':_0x1a963c[_0x2b94b9(0xf0)]?_0x1a963c[_0x2b94b9(0xf0)]:global[_0x2b94b9(0xf0)],'categories':_0x1a963c[_0x2b94b9(0x141)]?_0x1a963c['categories']:[]}),await fs[_0x2b94b9(0xf6)][_0x2b94b9(0x155)](_0x56d409),_0xb2836a=_0x2b94b9(0x13b),_0x156a0e=_0x2b94b9(0x148);}else{if(/image/[_0x2b94b9(0x147)](_0xc816b6))_0xb2836a=_0x2b94b9(0x108);else{if(/video/['test'](_0xc816b6))_0xb2836a=_0x2b94b9(0xc0);else{if(/audio/[_0x2b94b9(0x147)](_0xc816b6))_0xb2836a=_0x2b94b9(0x10d);else _0xb2836a='document';}}}return await _0x3825f7[_0x2b94b9(0x133)](_0x207e55,{[_0xb2836a]:{'url':_0x37db05},'caption':_0x47f0a9,'mimetype':_0x156a0e,'fileName':_0x11355f,..._0x1a963c},{'quoted':_0x59ffe9,..._0x1a963c}),fs[_0x2b94b9(0xf6)]['unlink'](_0x37db05);},_0x3825f7[_0x5a461c(0x15e)]=async(_0x7120d1,_0x18671c,_0x2381ac=![],_0x2f5e76={})=>{const _0x231582=_0x5a461c;let _0x3e8e74;_0x2f5e76[_0x231582(0x12c)]&&(_0x18671c[_0x231582(0xaa)]=_0x18671c['message']&&_0x18671c[_0x231582(0xaa)]['ephemeralMessage']&&_0x18671c[_0x231582(0xaa)][_0x231582(0xd7)]['message']?_0x18671c[_0x231582(0xaa)]['ephemeralMessage'][_0x231582(0xaa)]:_0x18671c[_0x231582(0xaa)]||undefined,_0x3e8e74=Object[_0x231582(0xa8)](_0x18671c[_0x231582(0xaa)][_0x231582(0xc8)][_0x231582(0xaa)])[0x0],delete(_0x18671c[_0x231582(0xaa)]&&_0x18671c['message'][_0x231582(0xb4)]?_0x18671c[_0x231582(0xaa)][_0x231582(0xb4)]:_0x18671c['message']||undefined),delete _0x18671c[_0x231582(0xaa)][_0x231582(0xc8)][_0x231582(0xaa)][_0x3e8e74][_0x231582(0x162)],_0x18671c[_0x231582(0xaa)]={..._0x18671c[_0x231582(0xaa)][_0x231582(0xc8)][_0x231582(0xaa)]});let _0x121327=Object[_0x231582(0xa8)](_0x18671c[_0x231582(0xaa)])[0x0],_0x4445bd=await generateForwardMessageContent(_0x18671c,_0x2381ac),_0x47f7e6=Object[_0x231582(0xa8)](_0x4445bd)[0x0],_0x23f9cf={};if(_0x121327!=_0x231582(0x14f))_0x23f9cf=_0x18671c[_0x231582(0xaa)][_0x121327][_0x231582(0xfc)];_0x4445bd[_0x47f7e6][_0x231582(0xfc)]={..._0x23f9cf,..._0x4445bd[_0x47f7e6][_0x231582(0xfc)]};const _0x428f89=await generateWAMessageFromContent(_0x7120d1,_0x4445bd,_0x2f5e76?{..._0x4445bd[_0x47f7e6],..._0x2f5e76,..._0x2f5e76[_0x231582(0xfc)]?{'contextInfo':{..._0x4445bd[_0x47f7e6]['contextInfo'],..._0x2f5e76[_0x231582(0xfc)]}}:{}}:{});return await _0x3825f7[_0x231582(0xb3)](_0x7120d1,_0x428f89[_0x231582(0xaa)],{'messageId':_0x428f89['key']['id']}),_0x428f89;},_0x3825f7[_0x5a461c(0x15d)]=(_0x3c685a,_0x33f127,_0x9ae888='',_0xb6d747=_0x3825f7[_0x5a461c(0x122)]['id'],_0x44096b={})=>{const _0x2263f7=_0x5a461c;let _0x4460d3=Object[_0x2263f7(0xa8)](_0x33f127['message'])[0x0],_0x1efcdb=_0x4460d3===_0x2263f7(0xd7);_0x1efcdb&&(_0x4460d3=Object[_0x2263f7(0xa8)](_0x33f127[_0x2263f7(0xaa)][_0x2263f7(0xd7)][_0x2263f7(0xaa)])[0x0]);let _0x4bf4a8=_0x1efcdb?_0x33f127[_0x2263f7(0xaa)][_0x2263f7(0xd7)][_0x2263f7(0xaa)]:_0x33f127[_0x2263f7(0xaa)],_0x2fd70b=_0x4bf4a8[_0x4460d3];if(typeof _0x2fd70b===_0x2263f7(0x11e))_0x4bf4a8[_0x4460d3]=_0x9ae888||_0x2fd70b;else{if(_0x2fd70b[_0x2263f7(0x113)])_0x2fd70b[_0x2263f7(0x113)]=_0x9ae888||_0x2fd70b[_0x2263f7(0x113)];else{if(_0x2fd70b[_0x2263f7(0x16f)])_0x2fd70b[_0x2263f7(0x16f)]=_0x9ae888||_0x2fd70b[_0x2263f7(0x16f)];}}if(typeof _0x2fd70b!=='string')_0x4bf4a8[_0x4460d3]={..._0x2fd70b,..._0x44096b};if(_0x33f127[_0x2263f7(0x102)]['participant'])_0xb6d747=_0x33f127['key'][_0x2263f7(0x128)]=_0xb6d747||_0x33f127[_0x2263f7(0x102)]['participant'];else{if(_0x33f127[_0x2263f7(0x102)][_0x2263f7(0x128)])_0xb6d747=_0x33f127[_0x2263f7(0x102)][_0x2263f7(0x128)]=_0xb6d747||_0x33f127[_0x2263f7(0x102)]['participant'];}if(_0x33f127[_0x2263f7(0x102)][_0x2263f7(0x169)][_0x2263f7(0xe0)](_0x2263f7(0x12d)))_0xb6d747=_0xb6d747||_0x33f127[_0x2263f7(0x102)]['remoteJid'];else{if(_0x33f127[_0x2263f7(0x102)][_0x2263f7(0x169)][_0x2263f7(0xe0)](_0x2263f7(0xd6)))_0xb6d747=_0xb6d747||_0x33f127['key'][_0x2263f7(0x169)];}return _0x33f127['key'][_0x2263f7(0x169)]=_0x3c685a,_0x33f127[_0x2263f7(0x102)]['fromMe']=_0xb6d747===_0x3825f7[_0x2263f7(0x122)]['id'],proto[_0x2263f7(0x14b)][_0x2263f7(0xb9)](_0x33f127);},_0x3825f7[_0x5a461c(0xd2)]=async(_0x3db27f,_0x53a26b,_0x53de0b='',_0x393e05='',_0x44a459,_0x362f21=![],_0x332352={})=>{const _0x32f1b=_0x5a461c;let _0x122742=await _0x3825f7['getFile'](_0x53a26b,!![]),{res:_0x581449,data:_0x56834d,filename:_0x378659}=_0x122742;if(_0x581449&&_0x581449[_0x32f1b(0xcd)]!==0xc8||_0x56834d['length']<=0x10000)try{throw{'json':JSON['parse'](_0x56834d[_0x32f1b(0xef)]())};}catch(_0x3aa0a4){if(_0x3aa0a4[_0x32f1b(0x15f)])throw _0x3aa0a4[_0x32f1b(0x15f)];}let _0x55d62d={'filename':_0x53de0b};if(_0x44a459)_0x55d62d[_0x32f1b(0x157)]=_0x44a459;if(!_0x122742)_0x332352[_0x32f1b(0xb5)]=!![];let _0x4ea654='',_0x59b24d=_0x122742[_0x32f1b(0x136)],_0x5822ac;if(/webp/[_0x32f1b(0x147)](_0x122742[_0x32f1b(0x136)])||/image/[_0x32f1b(0x147)](_0x122742['mime'])&&_0x332352[_0x32f1b(0x112)])_0x4ea654=_0x32f1b(0x13b);else{if(/image/[_0x32f1b(0x147)](_0x122742[_0x32f1b(0x136)])||/webp/['test'](_0x122742['mime'])&&_0x332352[_0x32f1b(0x106)])_0x4ea654=_0x32f1b(0x108);else{if(/video/[_0x32f1b(0x147)](_0x122742[_0x32f1b(0x136)]))_0x4ea654=_0x32f1b(0xc0);else{if(/audio/['test'](_0x122742['mime']))_0x5822ac=await(_0x362f21?toPTT:toAudio)(_0x56834d,_0x122742['ext']),_0x56834d=_0x5822ac['data'],_0x378659=_0x5822ac['filename'],_0x4ea654=_0x32f1b(0x10d),_0x59b24d=_0x32f1b(0xa6);else _0x4ea654=_0x32f1b(0xf5);}}}if(_0x332352['asDocument'])_0x4ea654=_0x32f1b(0xf5);delete _0x332352[_0x32f1b(0x112)],delete _0x332352['asLocation'],delete _0x332352['asVideo'],delete _0x332352['asDocument'],delete _0x332352[_0x32f1b(0x106)];let _0x1ac97e={..._0x332352,'caption':_0x393e05,'ptt':_0x362f21,[_0x4ea654]:{'url':_0x378659},'mimetype':_0x59b24d},_0x3b3c8c;try{_0x3b3c8c=await _0x3825f7[_0x32f1b(0x133)](_0x3db27f,_0x1ac97e,{..._0x55d62d,..._0x332352});}catch(_0xfa3d0f){_0x3b3c8c=null;}finally{if(!_0x3b3c8c)_0x3b3c8c=await _0x3825f7[_0x32f1b(0x133)](_0x3db27f,{..._0x1ac97e,[_0x4ea654]:_0x56834d},{..._0x55d62d,..._0x332352});return _0x56834d=null,_0x3b3c8c;}},_0x3825f7[_0x5a461c(0x115)]=async(_0x421db6,_0x33334e)=>{const _0x58d119=_0x5a461c;let _0x2313d9,_0xa51706=Buffer['isBuffer'](_0x421db6)?_0x421db6:/^data:.*?\/.*?;base64,/i[_0x58d119(0x147)](_0x421db6)?Buffer[_0x58d119(0x142)](_0x421db6[_0x58d119(0xb2)]`,`[0x1],'base64'):/^https?:\/\//['test'](_0x421db6)?await(_0x2313d9=await getBuffer(_0x421db6)):fs[_0x58d119(0x13e)](_0x421db6)?(filename=_0x421db6,fs['readFileSync'](_0x421db6)):typeof _0x421db6===_0x58d119(0x11e)?_0x421db6:Buffer[_0x58d119(0x171)](0x0),_0x49eff8=await FileType['fromBuffer'](_0xa51706)||{'mime':_0x58d119(0x158),'ext':_0x58d119(0xe3)};filename=path[_0x58d119(0x156)](__filename,_0x58d119(0xcf)+new Date()*0x1+'.'+_0x49eff8[_0x58d119(0xc5)]);if(_0xa51706&&_0x33334e)fs[_0x58d119(0xf6)][_0x58d119(0x12a)](filename,_0xa51706);return{'res':_0x2313d9,'filename':filename,'size':await getSizeMedia(_0xa51706),..._0x49eff8,'data':_0xa51706};},_0x3825f7['ev']['on'](_0x5a461c(0xbf),async _0x232c0e=>{const _0x38e6d4=_0x5a461c;try{mek=_0x232c0e[_0x38e6d4(0x111)][0x0];if(!mek[_0x38e6d4(0xaa)])return;mek['message']=Object[_0x38e6d4(0xa8)](mek[_0x38e6d4(0xaa)])[0x0]===_0x38e6d4(0xd7)?mek['message']['ephemeralMessage'][_0x38e6d4(0xaa)]:mek[_0x38e6d4(0xaa)];if(mek[_0x38e6d4(0x102)]&&mek[_0x38e6d4(0x102)][_0x38e6d4(0x169)]===_0x38e6d4(0x124))return;if(!_0x3825f7[_0x38e6d4(0xf8)]&&!mek[_0x38e6d4(0x102)][_0x38e6d4(0x11b)]&&_0x232c0e[_0x38e6d4(0x107)]===_0x38e6d4(0xea))return;if(mek[_0x38e6d4(0x102)]['id'][_0x38e6d4(0xbd)](_0x38e6d4(0x103))&&mek[_0x38e6d4(0x102)]['id'][_0x38e6d4(0x16d)]===0x10)return;if(mek[_0x38e6d4(0x102)]['id'][_0x38e6d4(0xbd)](_0x38e6d4(0xb7)))return;m=smsg(_0x3825f7,mek,_0x5d9e8c),require(_0x38e6d4(0x15b))(_0x3825f7,m,_0x232c0e,_0x5d9e8c);}catch(_0x105fc5){console[_0x38e6d4(0xab)](_0x105fc5);}});async function _0x37896d(_0x68f9c6){const _0x3510bc=_0x5a461c;if(_0x5d9e8c){const _0x133255=await _0x5d9e8c[_0x3510bc(0xff)](_0x68f9c6[_0x3510bc(0x169)],_0x68f9c6['id']);return _0x133255?.[_0x3510bc(0xaa)];}return{'conversation':_0x3510bc(0xc4)};}return _0x3825f7['ev']['on'](_0x5a461c(0x10e),async _0x594aef=>{const _0x32acb9=_0x5a461c;for(const {key:_0x1ff739,update:_0x163f9b}of _0x594aef){if(_0x163f9b[_0x32acb9(0x100)]&&_0x1ff739[_0x32acb9(0x11b)]){const _0x1be3a2=await _0x37896d(_0x1ff739);if(_0x1be3a2){const _0x31eca5=await getAggregateVotesInPollMessage({'message':_0x1be3a2,'pollUpdates':_0x163f9b[_0x32acb9(0x100)]});var _0x58485e=_0x31eca5['filter'](_0x58df33=>_0x58df33['voters'][_0x32acb9(0x16d)]!==0x0)[0x0]?.[_0x32acb9(0x132)];if(_0x58485e==undefined)return;var _0x4146fb=prefix+_0x58485e;_0x3825f7['appenTextMessage'](_0x4146fb,_0x594aef);}}}}),_0x3825f7['ev'][_0x5a461c(0xed)](async _0x59a975=>{const _0x35cea7=_0x5a461c;_0x59a975['presence.update']&&await _0x3825f7['sendPresenceUpdate'](_0x35cea7(0x163)),_0x59a975['creds.update']&&await _0xcf7931();}),_0x3825f7;}AlwaysaqiooStart();function _0x1721(){const _0x2bdc80=['video','sendText','sendMedia','chalk','Hi,\x20I\x27m\x20Alwaysaqioo\x20Botz','ext','badSession','217125ODBZrl','viewOnceMessage','\x0aFN:','Unknown\x20DisconnectReason:\x20','WhatsApp','application/pdf','status','setStatus','../src/','concat','loggedOut','sendFile','silent','false','gif','@broadcast','ephemeralMessage','receivedPendingNotifications','downloadAndSaveMediaMessage','Connection\x20TimedOut,\x20Reconnecting...','88LFghFq','lodash','mtype','close','getNumber','includes','Update\x20File\x20Terbaru\x20','loadDatabase','.bin','magenta','utf-8','Qioo\x0aDev\x0a','./lib/lowdb','cache','cfonts','notify','isBuffer','readFileSync','process','content-type','toString','author','decodeJid','connection.update','blue','Device\x20Logged\x20Out,\x20Please\x20Scan\x20Again\x20And\x20Run.','document','promises','Restart\x20Required,\x20Restarting...','public','mimetype','resolve','pino','contextInfo','246600PrijDe','creds','loadMessage','pollUpdates','4OuDBSH','key','BAE5','yellowBright','Connection\x20closed,\x20reconnecting....','asImage','type','image','subject','SC\x20INI\x20BUATAN\x20ALWAYSAQIOO\x20,\x20JANGAN\x20RENAME/RECODE\x20SESUKA\x20HATI','restartRequired','lowdb','audio','messages.update','timedOut','\x0aitem1.X-ABLabel:Ponsel\x0aEND:VCARD','messages','asSticker','caption','question','getFile','serializeM','block','node-cache','Connection\x20Replaced,\x20Another\x20New\x20Session\x20Opened,\x20Please\x20Close\x20Current\x20Session\x20First','chain','fromMe','statusCode','random','string','store','stdin','read','user','unwatchFile','status@broadcast','212283iGzgIt','watchFile','👾masukin\x20no\x20wangcap\x20lu\x20awalnya\x20628xxx\x20(jangan\x2008)\x20\x0a\x20🚩\x20nomor\x20:\x20','participant','./lib/mongoDB','writeFile','Mengkoneksikan','readViewOnce','@s.whatsapp.net','write','\x20Kontak','matchAll','child','name','sendMessage','[\x20#\x20]\x20enter\x20that\x20code\x20into\x20WhatsApp,\x20motherfucker\x20:\x20','video/mp4','mime','msg','child_process','@colors/colors/safe','Connection\x20Lost\x20from\x20Server,\x20reconnecting...','sticker','44WjGPSH','awesome-phonenumber','existsSync','base64','1346548idWSgI','categories','from','@g.us','1172976YFyWBc','connection','connectionReplaced','test','image/webp','contacts','server','WebMessageInfo','withoutContact','36ySxced','90541AMkFXG','conversation','sendImage','figlet','path','contacts.update','audio/mpeg','unlink','join','quoted','application/octet-stream','trim','268457kQiEYg','./qio','3pWnvHP','cMod','copyNForward','json','parse','yargs/yargs','viewOnce','available','sessionName','packname','\x0aitem1.TEL;waid=','query','fatal','remoteJid','./lib/lowdb/adapters/basedate/database.json','groupMetadata','console','length','@hapi/boom','text','end','alloc','connectionClosed','./settings','moment-timezone','data','audio/ogg;\x20codecs=opus','Mac\x20Os','keys','center','message','log','getName','opts','READ','99999999@s.whatsapp.net','./lib/myfunction','downloadMediaMessage','split','relayMessage','ignore','asDocument','BEGIN:VCARD\x0aVERSION:3.0\x0aN:','FatihArridho_','open','fromObject','requestPairingCode','replace','file-type','startsWith','createInterface','messages.upsert'];_0x1721=function(){return _0x2bdc80;};return _0x1721();}let file=require[_0x4efcc6(0xfa)](__filename);fs[_0x4efcc6(0x126)](file,()=>{const _0x23e0ac=_0x4efcc6;fs[_0x23e0ac(0x123)](file),console[_0x23e0ac(0xab)](chalk[_0x23e0ac(0x104)](_0x23e0ac(0xe1)+__filename)),delete require[_0x23e0ac(0xe8)][file],require(file);});