forked from DeeCeeXxx/Queen_Anita-V3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
1 lines (1 loc) · 25.1 KB
/
index.js
1
const _0x4c4285=_0x30b0;(function(_0x57b9e8,_0x3730fa){const _0x5de450=_0x30b0,_0x1a8140=_0x57b9e8();while(!![]){try{const _0x139178=-parseInt(_0x5de450(0x154))/0x1*(parseInt(_0x5de450(0xfa))/0x2)+parseInt(_0x5de450(0xef))/0x3*(-parseInt(_0x5de450(0xd2))/0x4)+-parseInt(_0x5de450(0x10b))/0x5+parseInt(_0x5de450(0x17c))/0x6*(parseInt(_0x5de450(0xf6))/0x7)+parseInt(_0x5de450(0xe9))/0x8+-parseInt(_0x5de450(0x156))/0x9*(parseInt(_0x5de450(0x161))/0xa)+parseInt(_0x5de450(0xf7))/0xb;if(_0x139178===_0x3730fa)break;else _0x1a8140['push'](_0x1a8140['shift']());}catch(_0xf12a17){_0x1a8140['push'](_0x1a8140['shift']());}}}(_0x3bd5,0xe165e),require(_0x4c4285(0xc9)));const {default:makeWASocket,useMultiFileAuthState,DisconnectReason,fetchLatestBaileysVersion,makeInMemoryStore,jidDecode,proto,getContentType,downloadContentFromMessage,fetchLatestWaWebVersion}=require(_0x4c4285(0x14a)),fs=require('fs');let {generateWAMessageFromContent,prepareWAMessageMedia}=require(_0x4c4285(0x168));const pino=require(_0x4c4285(0x144)),lolcatjs=require(_0x4c4285(0xd1)),path=require(_0x4c4285(0xbe)),NodeCache=require(_0x4c4285(0x16a)),msgRetryCounterCache=new NodeCache(),fetch=require(_0x4c4285(0xc2)),FileType=require(_0x4c4285(0x165)),_=require(_0x4c4285(0xbf)),{Boom}=require(_0x4c4285(0x102)),PhoneNumber=require('awesome-phonenumber'),readline=require(_0x4c4285(0xee)),{smsg,color,getBuffer}=require('./lib/myfunc'),{imageToWebp,videoToWebp,writeExifImg,writeExifVid}=require(_0x4c4285(0x142)),{toAudio,toPTT,toVideo}=require(_0x4c4285(0x12d)),moment=require(_0x4c4285(0x155)),yargs=require('yargs/yargs'),store=makeInMemoryStore({'logger':pino()[_0x4c4285(0x110)]({'level':'silent','stream':_0x4c4285(0xc4)})});function _0x30b0(_0x532df9,_0x2523ff){const _0x3bd562=_0x3bd5();return _0x30b0=function(_0x30b07a,_0x498cbd){_0x30b07a=_0x30b07a-0xb9;let _0x444a9c=_0x3bd562[_0x30b07a];return _0x444a9c;},_0x30b0(_0x532df9,_0x2523ff);}global[_0x4c4285(0x146)]=new Object(yargs(process['argv'][_0x4c4285(0x148)](0x2))['exitProcess'](![])[_0x4c4285(0x169)]());const low=require(_0x4c4285(0x147)),{Low,JSONFile}=low,mongoDB=require(_0x4c4285(0xfe)),opts=yargs(process[_0x4c4285(0x126)][_0x4c4285(0x148)](0x2))[_0x4c4285(0x16c)](![])[_0x4c4285(0x169)](),dbPath=_0x4c4285(0x12c);let db;urldb!==''?(db=new mongoDB(urldb),lolcatjs[_0x4c4285(0x108)](_0x4c4285(0x166))):(db=new JSONFile(dbPath),lolcatjs[_0x4c4285(0x108)]('[\x20Connected\x20To\x20Local\x20Database\x20]'));function _0x3bd5(){const _0x37c497=['file-type','[\x20Successfully\x20Comnected\x20to\x20database\x20MongoDB\x20]','connection.update','@whiskeysockets/baileys','parse','node-cache','stringify','exitProcess','replace','concat','image','mtype','Body','timedOut','contacts.update','uncaughtException','end','Pairing\x20code:\x20','notify','Folder\x20\x27','getFile','key','\x0a│\x20𝐘𝐎𝐔\x20𝐋𝐄𝐅𝐓\x20','84whjcNb','status@broadcast','read','badSession','relayMessage','autoViewStatus','mime','contacts','creds.update','name','promises','path','lodash','waUploadToServer','\x27\x20successfully\x20created..','node-fetch','20.0.04','store','registered','creds','split','existsSync','./config','sendMessage','message','type','push','Error\x20Connection.update\x20','mimetype','fromBuffer','lolcatjs','17924dVgdwV','Header','logout','remove','restartRequired','sendText','profilePictureUrl','READ','asDocument','open','./message','fromMe','\x0aitem1.X-ABLabel:Mobile\x0aEND:VCARD','connection','loadDatabase','question','length','Connection\x20Lost\x20from\x20Server,\x20reconnecting...','readFileSync','[email protected]','getName','Connection\x20Replaced,\x20Another\x20New\x20Session\x20Opened,\x20Please\x20Close\x20Current\x20Session\x20First','data','3236040cNuuhy','𝐭𝐡\x0a│\x0a│\x20https://whatsapp.com/channel/0029VaeRru3ADTOEKPCPom0L\x0a╰────────────────────────┅','output','endsWith','unlink','readline','993uRXbSB','writeFileSync','action','resolve','quick_reply','@s.whatsapp.net','DATABASE','555751cYcBGL','45843809fKspbQ','WhatsApp','tmp','46CghATU','session','create','server','./lib/mongoDB','sendPoll','sendFile','subject','@hapi/boom','unwatchFile','getNumber','Ubuntu','messages.upsert','sticker','fromString','connectionReplaced','close','2435925KThaIO','Result\x20is\x20not\x20a\x20buffer','from','audio/ogg;\x20codecs=opus','Connection\x20closed,\x20reconnecting....','child','alloc','remoteJid','https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_960_720.png?q=60','packname','NativeFlowMessage','buffer','\x27\x20already\x20available.','.bin','HH:mm:ss','log','authState','Device\x20Logged\x20Out,\x20Please\x20Verifikasi\x20Again\x20And\x20Run.','user','{\x22display_text\x22:\x22Welcome\x20💐\x22,\x22id\x22:\x22\x22}','startsWith','ephemeralMessage','quoted','status','decodeJid','Unknown\x20DisconnectReason:\x20','public','argv','string','[email protected]','BAE5','\x0a\x0aPlease\x20Type\x20Your\x20WhatsApp\x20Number\x0aExample\x202349066831211\x20:\x0a','\x20Contact','./src/database.json','./lib/converter','Message','\x0aitem1.TEL;waid=','ext','╭╴────────────────────╍\x0a│\x20[\x20*ᏀᎡϴႮᏢ\x20ᎷᎬᎷᏴᎬᎡ\x20ᏞᎬᎪᏙᏆΝᏀ*\x20]\x0a│\x20↯𝐒𝐚𝐝𝐥𝐲↯@','sendContact','requestPairingCode','Africa/Lagos','international','downloadMediaMessage','writeFile','document','participants','chain','toString','./tmp/','json','application/octet-stream','video','audio','write','./lib/exif','join','pino','Connection\x20TimedOut,\x20Reconnecting...','opts','./lib/lowdb','slice','error','@adiwajshing/baileys','@g.us','\x0a│\x20𝐘𝐎𝐔\x20𝐀𝐑𝐄\x20𝐓𝐇𝐄\x20','filename','silent','base64','sendVideoAsSticker','groupMetadata','asImage','Connect,\x20welcome\x20owner!','68728VlyDWK','moment-timezone','1360413Qbnwna','Connected\x20to\x20=\x20','InteractiveMessage','Chrome','https://i.ibb.co/RBx5SQC/avatar-group-large-v2.png?q=60','msg','statusCode','createInterface','sendImageAsSticker','format','isBuffer','80ujAOCj','Footer','asSticker','test'];_0x3bd5=function(){return _0x37c497;};return _0x3bd5();}global['db']=new Low(db),global[_0x4c4285(0xf5)]=global['db'],global['loadDatabase']=async function loadDatabase(){const _0x219b77=_0x4c4285;if(global['db']['READ'])return new Promise(_0x214882=>setInterval(function(){const _0xacf6de=_0x30b0;!global['db'][_0xacf6de(0xd9)]?(clearInterval(this),_0x214882(global['db'][_0xacf6de(0xe8)]==null?global[_0xacf6de(0xe0)]():global['db'][_0xacf6de(0xe8)])):null;},0x1*0x3e8));if(global['db']['data']!==null)return;global['db'][_0x219b77(0xd9)]=!![],await global['db'][_0x219b77(0x17e)](),global['db'][_0x219b77(0xd9)]=![],global['db'][_0x219b77(0xe8)]={'users':{},'chats':{},'database':{},'game':{},'settings':{},'others':{},'sticker':{},...global['db']['data']||{}},global['db'][_0x219b77(0x13a)]=_[_0x219b77(0x13a)](global['db'][_0x219b77(0xe8)]);},global[_0x4c4285(0xe0)](),process['on'](_0x4c4285(0x174),console[_0x4c4285(0x149)]);global['db']&&urldb!==''&&setInterval(async()=>{const _0x22957e=_0x4c4285;if(global['db'][_0x22957e(0xe8)])await global['db'][_0x22957e(0x141)]();},0x1e*0x3e8);function createTmpFolder(){const _0x38137e=_0x4c4285,_0x48f75f=_0x38137e(0xf9),_0x5cb2e3=path[_0x38137e(0x143)](__dirname,_0x48f75f);!fs['existsSync'](_0x5cb2e3)?(fs['mkdirSync'](_0x5cb2e3),lolcatjs['fromString'](_0x38137e(0x178)+_0x48f75f+_0x38137e(0xc1))):lolcatjs['fromString'](_0x38137e(0x178)+_0x48f75f+_0x38137e(0x117));}createTmpFolder();const usePairingCode=!![],question=_0x4ce4b1=>{const _0x255b72=_0x4c4285,_0x440f55=readline[_0x255b72(0x15d)]({'input':process['stdin'],'output':process['stdout']});return new Promise(_0x5b24b0=>{const _0xff0ec0=_0x255b72;_0x440f55[_0xff0ec0(0xe1)](_0x4ce4b1,_0x5b24b0);});};async function startBotz(){const _0x212e75=_0x4c4285,{state:_0x414d42,saveCreds:_0x5f0f85}=await useMultiFileAuthState(_0x212e75(0xfb)),_0x5a63d7=makeWASocket({'logger':pino({'level':_0x212e75(0x14e)}),'printQRInTerminal':!usePairingCode,'auth':_0x414d42,'msgRetryCounterCache':msgRetryCounterCache,'connectTimeoutMs':0xea60,'defaultQueryTimeoutMs':0x0,'keepAliveIntervalMs':0x2710,'emitOwnEvents':!![],'fireInitQueries':!![],'generateHighQualityLinkPreview':!![],'syncFullHistory':!![],'markOnlineOnConnect':!![],'browser':[_0x212e75(0x105),_0x212e75(0x159),_0x212e75(0xc3)]});if(usePairingCode&&!_0x5a63d7[_0x212e75(0x11b)][_0x212e75(0xc6)][_0x212e75(0xc5)]){const _0x17f561=await question(_0x212e75(0x12a)),_0x2083fa=await _0x5a63d7[_0x212e75(0x133)](_0x17f561['trim']());console[_0x212e75(0x11a)](_0x212e75(0x176)+_0x2083fa);}store['bind'](_0x5a63d7['ev']),_0x5a63d7['ev']['on'](_0x212e75(0x106),async _0x3bd4ad=>{const _0x385dad=_0x212e75;try{const _0x55bc50=_0x3bd4ad['messages'][0x0];if(!_0x55bc50['message'])return;_0x55bc50[_0x385dad(0xcb)]=Object['keys'](_0x55bc50[_0x385dad(0xcb)])[0x0]===_0x385dad(0x120)?_0x55bc50[_0x385dad(0xcb)][_0x385dad(0x120)]['message']:_0x55bc50[_0x385dad(0xcb)];_0x55bc50[_0x385dad(0x17a)]&&_0x55bc50['key'][_0x385dad(0x112)]===_0x385dad(0x17d)&&global[_0x385dad(0x181)]&&await _0x5a63d7['readMessages']([_0x55bc50[_0x385dad(0x17a)]]);if(!_0x5a63d7[_0x385dad(0x125)]&&!_0x55bc50[_0x385dad(0x17a)][_0x385dad(0xdd)]&&_0x3bd4ad[_0x385dad(0xcc)]===_0x385dad(0x177))return;if(_0x55bc50[_0x385dad(0x17a)]['id'][_0x385dad(0x11f)](_0x385dad(0x129))&&_0x55bc50[_0x385dad(0x17a)]['id'][_0x385dad(0xe2)]===0x10)return;const _0x5bee97=smsg(_0x5a63d7,_0x55bc50,store);require(_0x385dad(0xdc))(_0x5a63d7,_0x5bee97,_0x3bd4ad,store);}catch(_0x1c8121){console[_0x385dad(0x11a)](_0x1c8121);}}),_0x5a63d7['decodeJid']=_0x67ff53=>{const _0x1a57c8=_0x212e75;if(!_0x67ff53)return _0x67ff53;if(/:\d+@/gi[_0x1a57c8(0x164)](_0x67ff53)){let _0x72f16a=jidDecode(_0x67ff53)||{};return _0x72f16a[_0x1a57c8(0x11d)]&&_0x72f16a['server']&&_0x72f16a[_0x1a57c8(0x11d)]+'@'+_0x72f16a[_0x1a57c8(0xfd)]||_0x67ff53;}else return _0x67ff53;},_0x5a63d7['ev']['on'](_0x212e75(0x173),_0x16d240=>{const _0x113179=_0x212e75;for(let _0x1e4582 of _0x16d240){let _0x41b1a5=_0x5a63d7[_0x113179(0x123)](_0x1e4582['id']);if(store&&store[_0x113179(0xba)])store[_0x113179(0xba)][_0x41b1a5]={'id':_0x41b1a5,'name':_0x1e4582[_0x113179(0x177)]};}}),_0x5a63d7[_0x212e75(0xe6)]=(_0x3b93df,_0x4c66e1=![])=>{const _0x41ca88=_0x212e75;id=_0x5a63d7[_0x41ca88(0x123)](_0x3b93df),_0x4c66e1=_0x5a63d7['withoutContact']||_0x4c66e1;let _0x14c611;if(id[_0x41ca88(0xec)](_0x41ca88(0x14b)))return new Promise(async _0x4ef3ec=>{const _0x5c0643=_0x41ca88;_0x14c611=store[_0x5c0643(0xba)][id]||{};if(!(_0x14c611[_0x5c0643(0xbc)]||_0x14c611[_0x5c0643(0x101)]))_0x14c611=_0x5a63d7['groupMetadata'](id)||{};_0x4ef3ec(_0x14c611['name']||_0x14c611[_0x5c0643(0x101)]||PhoneNumber('+'+id[_0x5c0643(0x16d)]('@s.whatsapp.net',''))[_0x5c0643(0x104)](_0x5c0643(0x135)));});else _0x14c611=id===_0x41ca88(0xe5)?{'id':id,'name':_0x41ca88(0xf8)}:id===_0x5a63d7['decodeJid'](_0x5a63d7[_0x41ca88(0x11d)]['id'])?_0x5a63d7[_0x41ca88(0x11d)]:store[_0x41ca88(0xba)][id]||{};return(_0x4c66e1?'':_0x14c611[_0x41ca88(0xbc)])||_0x14c611[_0x41ca88(0x101)]||_0x14c611['verifiedName']||PhoneNumber('+'+_0x3b93df[_0x41ca88(0x16d)](_0x41ca88(0xf4),''))['getNumber'](_0x41ca88(0x135));},_0x5a63d7[_0x212e75(0x125)]=!![],_0x5a63d7['serializeM']=_0x4aab7c=>smsg(_0x5a63d7,_0x4aab7c,store),_0x5a63d7['ev']['on'](_0x212e75(0x167),async _0x35f3fe=>{const _0xdb7275=_0x212e75,{connection:_0x28a57e,lastDisconnect:_0x10ee66}=_0x35f3fe;try{if(_0x28a57e===_0xdb7275(0x10a)){let _0x48c1ef=new Boom(_0x10ee66?.[_0xdb7275(0x149)])?.[_0xdb7275(0xeb)][_0xdb7275(0x15c)];if(_0x48c1ef===DisconnectReason[_0xdb7275(0x17f)])console[_0xdb7275(0x11a)]('Bad\x20Session\x20File,\x20Please\x20Delete\x20Session\x20and\x20Verifikasi\x20Again'),_0x5a63d7[_0xdb7275(0xd4)]();else{if(_0x48c1ef===DisconnectReason['connectionClosed'])console[_0xdb7275(0x11a)](_0xdb7275(0x10f)),startBotz();else{if(_0x48c1ef===DisconnectReason['connectionLost'])console[_0xdb7275(0x11a)](_0xdb7275(0xe3)),startBotz();else{if(_0x48c1ef===DisconnectReason[_0xdb7275(0x109)])console[_0xdb7275(0x11a)](_0xdb7275(0xe7)),_0x5a63d7[_0xdb7275(0xd4)]();else{if(_0x48c1ef===DisconnectReason['loggedOut'])console[_0xdb7275(0x11a)](_0xdb7275(0x11c)),_0x5a63d7['logout']();else{if(_0x48c1ef===DisconnectReason[_0xdb7275(0xd6)])console[_0xdb7275(0x11a)]('Restart\x20Required,\x20Restarting...'),startBotz();else{if(_0x48c1ef===DisconnectReason[_0xdb7275(0x172)])console[_0xdb7275(0x11a)](_0xdb7275(0x145)),startBotz();else _0x5a63d7[_0xdb7275(0x175)](_0xdb7275(0x124)+_0x48c1ef+'|'+_0x28a57e);}}}}}}}(_0x35f3fe[_0xdb7275(0xdf)]==_0xdb7275(0xdb)||_0x35f3fe['receivedPendingNotifications']=='true')&&(lolcatjs[_0xdb7275(0x108)](_0xdb7275(0x153)),lolcatjs['fromString'](_0xdb7275(0x157)+JSON[_0xdb7275(0x16b)](_0x5a63d7[_0xdb7275(0x11d)],null,0x2)),_0x5a63d7[_0xdb7275(0xca)](_0xdb7275(0x128),{'text':'QUEEN_ANITA_V3\x0aCONNECTED\x20♡゙\x20\x0a▬▬▬▬▬▬▬▬▬▬▬▬▬▬\x0a❶\u00a0\x20||\x20*ᴡʜᴀᴛsᴀᴘᴘ\x20ᴄʜᴀɴɴᴇʟ*\x20=\x20https://whatsapp.com/channel/0029VaeRru3ADTOEKPCPom0L\x0a▬▬▬▬▬▬▬▬▬▬▬▬▬▬\x0a❷\x20||\x20*ᴛᴇʟᴇɢʀᴀᴍ*\x20=\x20https://t.me/davidcyriltech\x20\x0a▬▬▬▬▬▬▬▬▬▬▬▬▬▬\x0a➌\x20||\x20*ʏᴏᴜᴛᴜʙᴇ*\x20=\x20https://www.youtube.com/@DavidCyril_TECH\x20\x0a▬▬▬▬▬▬▬▬▬▬▬▬▬▬\x0a\x0a\x0a>\x20©\x20ᴘᴏᴡᴇʀᴇᴅ\x20ʙʏ\x20ᴅᴀᴠɪᴅ\x20ᴄʏʀɪʟ\x20ᴛᴇᴄʜ™'}));}catch(_0x4f51e8){console['log'](_0xdb7275(0xce)+_0x4f51e8);}}),_0x5a63d7['ev']['on'](_0x212e75(0xbb),_0x5f0f85),_0x5a63d7['getFile']=async(_0x202a2b,_0x5dec52)=>{const _0x5dedf8=_0x212e75;let _0xa27a81,_0x1d96c7;const _0x15a7c8=Buffer['isBuffer'](_0x202a2b)?_0x202a2b:/^data:.*?\/.*?;base64,/i['test'](_0x202a2b)?Buffer[_0x5dedf8(0x10d)](_0x202a2b['split']`,`[0x1],_0x5dedf8(0x14f)):/^https?:\/\//['test'](_0x202a2b)?await(_0xa27a81=await fetch(_0x202a2b))[_0x5dedf8(0x116)]():fs[_0x5dedf8(0xc8)](_0x202a2b)?(_0x1d96c7=_0x202a2b,fs['readFileSync'](_0x202a2b)):typeof _0x202a2b===_0x5dedf8(0x127)?_0x202a2b:Buffer[_0x5dedf8(0x111)](0x0);if(!Buffer[_0x5dedf8(0x160)](_0x15a7c8))throw new TypeError(_0x5dedf8(0x10c));const _0x52e324=await FileType['fromBuffer'](_0x15a7c8)||{'mime':_0x5dedf8(0x13e),'ext':_0x5dedf8(0x118)};if(_0x15a7c8&&_0x5dec52&&!_0x1d96c7)_0x1d96c7=_0x9dd01b[_0x5dedf8(0x143)](__dirname,_0x5dedf8(0x13c)+new Date()*0x1+'.'+_0x52e324[_0x5dedf8(0x130)]),await fs['promises'][_0x5dedf8(0x137)](_0x1d96c7,_0x15a7c8);return{'res':_0xa27a81,'filename':_0x1d96c7,..._0x52e324,'data':_0x15a7c8,'deleteFile'(){const _0x5a5b5e=_0x5dedf8;return _0x1d96c7&&fs[_0x5a5b5e(0xbd)][_0x5a5b5e(0xed)](_0x1d96c7);}};},_0x5a63d7[_0x212e75(0x136)]=async _0x9d8b1d=>{const _0x1e5f42=_0x212e75;let _0x24190d=(_0x9d8b1d['msg']||_0x9d8b1d)[_0x1e5f42(0xcf)]||'',_0x1774ee=_0x9d8b1d[_0x1e5f42(0x170)]?_0x9d8b1d[_0x1e5f42(0x170)][_0x1e5f42(0x16d)](/Message/gi,''):_0x24190d[_0x1e5f42(0xc7)]('/')[0x0];const _0x5a7acf=await downloadContentFromMessage(_0x9d8b1d,_0x1774ee);let _0x533acb=Buffer[_0x1e5f42(0x10d)]([]);for await(const _0xf6c06 of _0x5a7acf){_0x533acb=Buffer[_0x1e5f42(0x16e)]([_0x533acb,_0xf6c06]);}return _0x533acb;},_0x5a63d7[_0x212e75(0x132)]=async(_0x10cb49,_0x407b99,_0x1f2a9a='',_0x4908eb={})=>{const _0x2cea5a=_0x212e75;let _0x2be48b=[];for(let _0x54af01 of _0x407b99){_0x2be48b[_0x2cea5a(0xcd)]({'displayName':await _0x5a63d7['getName'](_0x54af01),'vcard':'BEGIN:VCARD\x0aVERSION:3.0\x0aN:'+await _0x5a63d7[_0x2cea5a(0xe6)](_0x54af01)+'\x0aFN:'+await _0x5a63d7['getName'](_0x54af01)+_0x2cea5a(0x12f)+_0x54af01[_0x2cea5a(0xc7)]('@')[0x0]+':'+_0x54af01[_0x2cea5a(0xc7)]('@')[0x0]+_0x2cea5a(0xde)});}_0x5a63d7['sendMessage'](_0x10cb49,{'contacts':{'displayName':_0x2be48b[_0x2cea5a(0xe2)]+_0x2cea5a(0x12b),'contacts':_0x2be48b},..._0x4908eb},{'quoted':_0x1f2a9a});},_0x5a63d7[_0x212e75(0x100)]=async(_0x1592f3,_0x3b6a3d,_0x44baf9='',_0x2d860d='',_0x4e7460,_0x5a7f=![],_0x2d7f56={})=>{const _0x16afab=_0x212e75;let _0x56f635=await _0x5a63d7[_0x16afab(0x179)](_0x3b6a3d,!![]),{res:_0x2eb6c2,data:_0x5df938,filename:_0x10f458}=_0x56f635;if(_0x2eb6c2&&_0x2eb6c2[_0x16afab(0x122)]!==0xc8||_0x5df938[_0x16afab(0xe2)]<=0x10000)try{throw{'json':JSON['parse'](_0x5df938[_0x16afab(0x13b)]())};}catch(_0x213dd3){if(_0x213dd3[_0x16afab(0x13d)])throw _0x213dd3['json'];}let _0x309a5a={'filename':_0x44baf9};if(_0x4e7460)_0x309a5a[_0x16afab(0x121)]=_0x4e7460;if(!_0x56f635)_0x2d7f56[_0x16afab(0xda)]=!![];let _0x103177='',_0x44a4fe=_0x56f635['mime'],_0x32a0d6;if(/webp/[_0x16afab(0x164)](_0x56f635[_0x16afab(0xb9)])||/image/[_0x16afab(0x164)](_0x56f635[_0x16afab(0xb9)])&&_0x2d7f56[_0x16afab(0x163)])_0x103177=_0x16afab(0x107);else{if(/image/[_0x16afab(0x164)](_0x56f635[_0x16afab(0xb9)])||/webp/[_0x16afab(0x164)](_0x56f635[_0x16afab(0xb9)])&&_0x2d7f56[_0x16afab(0x152)])_0x103177=_0x16afab(0x16f);else{if(/video/[_0x16afab(0x164)](_0x56f635[_0x16afab(0xb9)]))_0x103177=_0x16afab(0x13f);else{if(/audio/[_0x16afab(0x164)](_0x56f635[_0x16afab(0xb9)]))_0x32a0d6=await(_0x5a7f?toPTT:toAudio)(_0x5df938,_0x56f635[_0x16afab(0x130)]),_0x5df938=_0x32a0d6[_0x16afab(0xe8)],_0x10f458=_0x32a0d6[_0x16afab(0x14d)],_0x103177=_0x16afab(0x140),_0x44a4fe=_0x16afab(0x10e);else _0x103177=_0x16afab(0x138);}}}if(_0x2d7f56[_0x16afab(0xda)])_0x103177='document';let _0x4e6bbe={..._0x2d7f56,'caption':_0x2d860d,'ptt':_0x5a7f,[_0x103177]:{'url':_0x10f458},'mimetype':_0x44a4fe},_0x356e28;try{_0x356e28=await _0x5a63d7[_0x16afab(0xca)](_0x1592f3,_0x4e6bbe,{..._0x309a5a,..._0x2d7f56});}catch(_0x1bd297){console[_0x16afab(0x149)](_0x1bd297),_0x356e28=null;}finally{if(!_0x356e28)_0x356e28=await _0x5a63d7[_0x16afab(0xca)](_0x1592f3,{..._0x4e6bbe,[_0x103177]:_0x5df938},{..._0x309a5a,..._0x2d7f56});return _0x356e28;}},_0x5a63d7[_0x212e75(0x150)]=async(_0x4936d5,_0x59836,_0x3f355e,_0x38ba91={})=>{const _0x1c3d6d=_0x212e75;let _0x22c86d=Buffer['isBuffer'](_0x59836)?_0x59836:/^data:.*?\/.*?;base64,/i[_0x1c3d6d(0x164)](_0x59836)?Buffer['from'](_0x59836[_0x1c3d6d(0xc7)]`,`[0x1],_0x1c3d6d(0x14f)):/^https?:\/\//['test'](_0x59836)?await await getBuffer(_0x59836):fs[_0x1c3d6d(0xc8)](_0x59836)?fs[_0x1c3d6d(0xe4)](_0x59836):Buffer[_0x1c3d6d(0x111)](0x0),_0x23abb7;return _0x38ba91&&(_0x38ba91[_0x1c3d6d(0x114)]||_0x38ba91['author'])?_0x23abb7=await writeExifVid(_0x22c86d,_0x38ba91):_0x23abb7=await videoToWebp(_0x22c86d),await _0x5a63d7['sendMessage'](_0x4936d5,{'sticker':{'url':_0x23abb7},..._0x38ba91},{'quoted':_0x3f355e}),_0x23abb7;},_0x5a63d7['downloadAndSaveMediaMessage']=async(_0x24bd55,_0x38a58c,_0x6eceac=!![])=>{const _0x5390f1=_0x212e75;let _0x2ea6c1=_0x24bd55[_0x5390f1(0x15b)]?_0x24bd55['msg']:_0x24bd55,_0x3192f9=(_0x24bd55[_0x5390f1(0x15b)]||_0x24bd55)[_0x5390f1(0xcf)]||'',_0x103a4f=_0x24bd55[_0x5390f1(0x170)]?_0x24bd55[_0x5390f1(0x170)]['replace'](/Message/gi,''):_0x3192f9[_0x5390f1(0xc7)]('/')[0x0];const _0x8feade=await downloadContentFromMessage(_0x2ea6c1,_0x103a4f);let _0x4d1a38=Buffer[_0x5390f1(0x10d)]([]);for await(const _0x38c51f of _0x8feade){_0x4d1a38=Buffer[_0x5390f1(0x16e)]([_0x4d1a38,_0x38c51f]);}let _0x36c70c=await FileType[_0x5390f1(0xd0)](_0x4d1a38);return trueFileName=_0x6eceac?_0x38a58c+'.'+_0x36c70c[_0x5390f1(0x130)]:_0x38a58c,await fs[_0x5390f1(0xf0)](trueFileName,_0x4d1a38),trueFileName;};const _0x9dd01b=require('path');return _0x5a63d7['downloadAndSaveMediaMessage']=async(_0x118b94,_0x441191,_0x3bb79c=!![])=>{const _0x147ae0=_0x212e75;let _0x20b1f8=_0x118b94['msg']?_0x118b94['msg']:_0x118b94,_0x54ece1=(_0x118b94['msg']||_0x118b94)[_0x147ae0(0xcf)]||'',_0x36a41d=_0x118b94[_0x147ae0(0x170)]?_0x118b94[_0x147ae0(0x170)]['replace'](/Message/gi,''):_0x54ece1[_0x147ae0(0xc7)]('/')[0x0];const _0x16b7af=await downloadContentFromMessage(_0x20b1f8,_0x36a41d);let _0x55959f=Buffer['from']([]);for await(const _0x205943 of _0x16b7af){_0x55959f=Buffer[_0x147ae0(0x16e)]([_0x55959f,_0x205943]);}let _0x3d64c5=await FileType[_0x147ae0(0xd0)](_0x55959f),_0x223458=_0x3bb79c?_0x441191+'.'+_0x3d64c5[_0x147ae0(0x130)]:_0x441191,_0x73f868=_0x9dd01b['join'](__dirname,_0x147ae0(0xf9),_0x223458);return await fs[_0x147ae0(0xf0)](_0x73f868,_0x55959f),_0x73f868;},_0x5a63d7['ev']['on']('group-participants.update',async _0x2bcc3f=>{const _0x4c3de6=_0x212e75;if(global['welcome']){console['log'](_0x2bcc3f);try{let _0x530e50=await _0x5a63d7[_0x4c3de6(0x151)](_0x2bcc3f['id']),_0x4a7109=_0x2bcc3f['participants'];for(let _0x40af8c of _0x4a7109){try{ppuser=await _0x5a63d7['profilePictureUrl'](_0x40af8c,_0x4c3de6(0x16f));}catch(_0x4636e1){ppuser=_0x4c3de6(0x113);}try{ppgroup=await _0x5a63d7[_0x4c3de6(0xd8)](_0x2bcc3f['id'],_0x4c3de6(0x16f));}catch(_0x553dba){ppgroup=_0x4c3de6(0x15a);}memb=_0x530e50[_0x4c3de6(0x139)]['length'],RiasWlcm=await getBuffer(ppuser),RiasLft=await getBuffer(ppuser);if(_0x2bcc3f[_0x4c3de6(0xf1)]=='add'){const _0x1ab048=await getBuffer(ppuser);let _0x1d7b1f=_0x40af8c;const _0xc922e7=moment['tz']('Africa/Lagos')[_0x4c3de6(0x15f)](_0x4c3de6(0x119)),_0x32b268=moment['tz'](_0x4c3de6(0x134))['format']('DD/MM/YYYY'),_0x370bda=_0x530e50['participants'][_0x4c3de6(0xe2)];riasbody='╭────────────────────\x0a\x20[\x20*ΝᎬᏔ\x20ᏀᎡϴႮᏢ\x20ᎷᎬᎷᏴᎬᎡ*\x20]\x0a│\x20𝐇𝐢\x20@'+_0x1d7b1f['split']('@')[0x0]+'\x0a│\x20𝐖𝐄𝐋𝐂𝐎𝐌𝐄\x20𝐓𝐎\x20'+_0x530e50[_0x4c3de6(0x101)]+_0x4c3de6(0x14c)+_0x370bda+'𝐭𝐡\x0a│\x0a│\x20https://whatsapp.com/channel/0029VaeRru3ADTOEKPCPom0L\x0a╰────────────────────────┅';let _0x3b6b45=generateWAMessageFromContent(_0x2bcc3f['id'],{'viewOnceMessage':{'message':{'messageContextInfo':{'deviceListMetadata':{},'deviceListMetadataVersion':0x2},'interactiveMessage':proto[_0x4c3de6(0x12e)]['InteractiveMessage'][_0x4c3de6(0xfc)]({'body':proto[_0x4c3de6(0x12e)][_0x4c3de6(0x158)][_0x4c3de6(0x171)][_0x4c3de6(0xfc)]({'text':riasbody}),'footer':proto[_0x4c3de6(0x12e)]['InteractiveMessage'][_0x4c3de6(0x162)][_0x4c3de6(0xfc)]({'text':''}),'header':proto[_0x4c3de6(0x12e)][_0x4c3de6(0x158)]['Header'][_0x4c3de6(0xfc)]({'hasMediaAttachment':![],...await prepareWAMessageMedia({'image':RiasWlcm},{'upload':_0x5a63d7[_0x4c3de6(0xc0)]})}),'nativeFlowMessage':proto[_0x4c3de6(0x12e)][_0x4c3de6(0x158)][_0x4c3de6(0x115)][_0x4c3de6(0xfc)]({'buttons':[{'name':_0x4c3de6(0xf3),'buttonParamsJson':_0x4c3de6(0x11e)}]}),'contextInfo':{'mentionedJid':[_0x40af8c],'forwardingScore':0x3e7,'isForwarded':!![],'forwardedNewsletterMessageInfo':{'newsletterJid':'','newsletterName':'','serverMessageId':0x8f}}})}}},{});_0x5a63d7[_0x4c3de6(0x180)](_0x2bcc3f['id'],_0x3b6b45['message'],{});}else{if(_0x2bcc3f['action']==_0x4c3de6(0xd5)){const _0x4a4171=await getBuffer(ppuser),_0x3c6de8=moment['tz'](_0x4c3de6(0x134))[_0x4c3de6(0x15f)]('HH:mm:ss'),_0x1eb858=moment['tz'](_0x4c3de6(0x134))[_0x4c3de6(0x15f)]('DD/MM/YYYY');let _0x2dfe90=_0x40af8c;const _0x2b902b=_0x530e50[_0x4c3de6(0x139)][_0x4c3de6(0xe2)];riasbody=_0x4c3de6(0x131)+_0x2dfe90[_0x4c3de6(0xc7)]('@')[0x0]+_0x4c3de6(0x17b)+_0x530e50[_0x4c3de6(0x101)]+_0x4c3de6(0x14c)+_0x2b902b+_0x4c3de6(0xea);let _0x556ff7=generateWAMessageFromContent(_0x2bcc3f['id'],{'viewOnceMessage':{'message':{'messageContextInfo':{'deviceListMetadata':{},'deviceListMetadataVersion':0x2},'interactiveMessage':proto[_0x4c3de6(0x12e)][_0x4c3de6(0x158)]['create']({'body':proto[_0x4c3de6(0x12e)][_0x4c3de6(0x158)][_0x4c3de6(0x171)]['create']({'text':riasbody}),'footer':proto[_0x4c3de6(0x12e)][_0x4c3de6(0x158)][_0x4c3de6(0x162)]['create']({'text':''}),'header':proto[_0x4c3de6(0x12e)][_0x4c3de6(0x158)][_0x4c3de6(0xd3)][_0x4c3de6(0xfc)]({'hasMediaAttachment':![],...await prepareWAMessageMedia({'image':RiasLft},{'upload':_0x5a63d7[_0x4c3de6(0xc0)]})}),'nativeFlowMessage':proto[_0x4c3de6(0x12e)][_0x4c3de6(0x158)][_0x4c3de6(0x115)][_0x4c3de6(0xfc)]({'buttons':[{'name':_0x4c3de6(0xf3),'buttonParamsJson':'{\x22display_text\x22:\x22𝐆𝐎𝐎𝐃\x20𝐁𝐘𝐄👋\x22,\x22id\x22:\x22\x22}'}]}),'contextInfo':{'mentionedJid':[_0x40af8c],'forwardingScore':0x3e7,'isForwarded':!![],'forwardedNewsletterMessageInfo':{'newsletterJid':'','newsletterName':'','serverMessageId':0x8f}}})}}},{});_0x5a63d7[_0x4c3de6(0x180)](_0x2bcc3f['id'],_0x556ff7[_0x4c3de6(0xcb)],{});}}}}catch(_0x14a349){console[_0x4c3de6(0x11a)](_0x14a349);}}}),_0x5a63d7[_0x212e75(0x15e)]=async(_0x4f8f24,_0xcfba6d,_0x290cb0,_0x4989be={})=>{const _0x7e2a7d=_0x212e75;let _0x4c9380=Buffer[_0x7e2a7d(0x160)](_0xcfba6d)?_0xcfba6d:/^data:.*?\/.*?;base64,/i[_0x7e2a7d(0x164)](_0xcfba6d)?Buffer[_0x7e2a7d(0x10d)](_0xcfba6d['split']`,`[0x1],_0x7e2a7d(0x14f)):/^https?:\/\//[_0x7e2a7d(0x164)](_0xcfba6d)?await await getBuffer(_0xcfba6d):fs[_0x7e2a7d(0xc8)](_0xcfba6d)?fs[_0x7e2a7d(0xe4)](_0xcfba6d):Buffer['alloc'](0x0),_0x471f41;return _0x4989be&&(_0x4989be[_0x7e2a7d(0x114)]||_0x4989be['author'])?_0x471f41=await writeExifImg(_0x4c9380,_0x4989be):_0x471f41=await imageToWebp(_0x4c9380),await _0x5a63d7['sendMessage'](_0x4f8f24,{'sticker':{'url':_0x471f41},..._0x4989be},{'quoted':_0x290cb0}),_0x471f41;},_0x5a63d7[_0x212e75(0xff)]=(_0x556406,_0x35a64d='',_0x327c0b=[],_0x31dee6=0x1)=>{const _0x3be6cb=_0x212e75;return _0x5a63d7[_0x3be6cb(0xca)](_0x556406,{'poll':{'name':_0x35a64d,'values':_0x327c0b,'selectableCount':_0x31dee6}});},_0x5a63d7[_0x212e75(0xd7)]=(_0x71f5db,_0x5ce213,_0x4ff703='',_0x32635e)=>_0x5a63d7[_0x212e75(0xca)](_0x71f5db,{'text':_0x5ce213,..._0x32635e},{'quoted':_0x4ff703}),_0x5a63d7;}startBotz();let file=require[_0x4c4285(0xf2)](__filename);fs['watchFile'](file,()=>{const _0x254f3b=_0x4c4285;fs[_0x254f3b(0x103)](file),console['log']('Update\x20'+__filename),delete require['cache'][file],require(file);});