-
Notifications
You must be signed in to change notification settings - Fork 2.9k
/
index.js
1 lines (1 loc) ยท 29.2 KB
/
index.js
1
function _0x3421(){const _0xf15fb6=['antiToxic','asDocument','_AN_YA_','Something\x20went\x20wrong','server','messages','loadMessage','blueBright','ext','parse','\x0aitem1.TEL;waid=918811074852:918811074852\x0aitem1.X-ABLabel:Mobile\x0aEND:VCARD','chat','WARNING:','>>>\x20Message\x20๐ฆ','chatbot','unlinkSync','status','red','react','./lib/database/emoji','creds','includes','content','fancy32','./lib/System','ban','yellow','pushName','\x0aitem1.TEL;waid=','antitoxic','sendPresenceUpdate','asSticker','antiLink','bgYellow','โ ๏ธ\x20Maybe\x20you\x20changed\x20the\x20ownership\x20or\x20bot\x27s\x20number,\x20please\x20change\x20the\x20mongoDB\x20url\x20or\x20make\x20the\x20previous\x20user\x20owner\x20again.','log','user','5268580TLgsYU','composing','downloadAndSaveMediaMessage','Valid\x20Pair\x20Code\x20ID\x20Detected...','readViewOnce','notify','BEGIN:VCARD\x0aVERSION:3.0\x0aN:','self','creds.json','Valid\x20QR\x20Code\x20ID\x20Detected...','๐\x20๐๐ฐ๐ฏ๐ฏ๐ฆ๐ค๐ต๐ฆ๐ฅ,\x20๐ญ๐ช๐ด๐ต๐ช๐ฏ๐จ\x20๐ณ๐ฆ๐ด๐ฐ๐ถ๐ณ๐ค๐ฆ๐ด...','delete','/lib/database/session_Queen-Anya','48KILYeu','similar','readFileSync','messages.upsert','./lib/lib/session2','replace','http://localhost:','smsg','contacts','json','body','name','endsWith','verifiedName','Invalid\x20session\x20ID,\x20please\x20get\x20your\x20session\x20ID\x20from\x20original\x20platform','reason:','readMessages','tag','โ
\x20Saved\x20from\x20crash,\x20Caught\x20exception:\x20','copyNForward','readdirSync','ERROR:','startsWith','918811074852@s.whatsapp.net','๐ถ\x20Requiring\x20initial\x20resources...','decodeJid','packname','antiPicture','\x20stars_\x0a*๐ด\x20Total\x20forks\x20:*\x20_','cnt','1.0.0','_Queen-Anya_','autoReactMsg','./lib/database/session_Queen-Anya/','utf-8','magenta','split','=>\x20Requested\x20by','black','audio','level','all','categories','0@s.whatsapp.net','process','contextInfo','https://web.whatsapp.com/check-update?version=1&platform=web','alive','_ID:\x20','19RAkfyv','โ\x20Unable\x20to\x20retrieve\x20chatgptv4\x20API:','slice','https://vihangayt.me/tools/chatgptv4?q=','\x0aitem1.X-ABLabel:Click\x20here\x20to\x20chat\x20with\x20this\x20bot\x27s\x20developer.\x0aEND:VCARD','push','onlyadmin','.bin','โ
\x20Login\x20successful!','@g.us','unhandledRejection','listen','subject','autoStatusRead','isBuffer','chalk','image/webp','existsSync','admin','exicutePlugin','sticker','antivideo','@queenanya/baileys','./lib/lib','viewOnceMessage','rm\x20-r\x20','filter','./lib/database/mongoDB','SUCCESS:','child','366230BqqHeQ','test','autoMsgRead','downloadMediaMessage','...','ownernumber','quoted','prefa','8526704jLngyo','writeFileSync','keys','alloc','then','prefix','relayMessage','green','writeFile','โ
\x20Saved\x20from\x20crash,\x20Unhandled\x20Rejection\x20at:','reply','participants','2337492VsziqN','output','remoteJid',',;;;\x0aFN:','safari','WhatsApp','Please\x20set\x20your\x20MongoDB\x20URL\x20in\x20config.js\x20file','sendMessage','repository','isLatest','connection.update','anticall','@hapi/boom','โ\x20Error\x20fetching\x20group\x20metadata:','enabled','ephemeralMessage','catch','key','BAE5','groupMetadata','ignore','@s.whatsapp.net','modlist','getNumber','image_1','msg','invalid','public','worktype','ERROR;','currentVersion','./lib/database/mongoDB/mongoCore','close','getName','loggedOut','join','trim','./config','Undefined','send','statusCode','bgRed','sender','message','antilink','1430674iwjFmq','./lib/database/store.json','isPlugin','repo','autoTyping','5736008aEzDLO','../src/','fromBuffer','clear','rejectionHandled','available','axios','child_process','sessionId','author','9ZGSPCr','https://api.github.com/repos/PikaBotz/Anya_v2-MD','banChat','from','forEach','Private\x20Chat','getFile','isGroup','mkdir','text','http://api.brainshop.ai/get?bid=172502&key=ru9fgDbOTtZOwTjc&uid=[uid]&msg=','length','mtype','mimetype','error','map','data','CB:call','image','_๐\x20Invalid\x20option\x20number_','\x0a```Hey\x20','sendMedia','/creds.json','application/octet-stream','promises','180748FXLZgT','antiCall','get','awesome-phonenumber','\x20โฃ๏ธ๐ธ```\x0a\x0a*๐งฉ\x20About\x20:*\x20_Queen\x20Anya\x20v2:\x20A\x20WhatsApp\x20bot\x20with\x20diverse\x20plugins\x20for\x20tasks,\x20games,\x20and\x20utilities.\x20Boost\x20your\x20messaging\x20experience\x20with\x20efficiency\x20and\x20entertainment\x20in\x20one\x20user-friendly\x20package._\x0a\x0aโญโโ\x20๐๐ช๐๐๐ฃ\x20๐ผ๐ฃ๐ฎ๐\x20๐๐๐ง๐๐ฅ๐ฉ\x20โ\x0aโชโ\x20ยป\x20https://gitHub.com/PikaBotz/Anya_v2-MD\x20โโซ\x0a\x0a*๐\x20Total\x20stars\x20:*\x20_','unlink','./lib/lib/exif','silent','set','group-participants.update','creds.update','document','path','status@broadcast','concat'];_0x3421=function(){return _0xf15fb6;};return _0x3421();}const _0x3cb691=_0x1496;(function(_0x3fd432,_0x1bf13b){const _0x3db72a=_0x1496,_0x4ffc4a=_0x3fd432();while(!![]){try{const _0x3fd5f2=-parseInt(_0x3db72a(0x1bb))/0x1*(-parseInt(_0x3db72a(0x149))/0x2)+parseInt(_0x3db72a(0xf4))/0x3+-parseInt(_0x3db72a(0x126))/0x4+-parseInt(_0x3db72a(0xe0))/0x5*(-parseInt(_0x3db72a(0x18a))/0x6)+-parseInt(_0x3db72a(0x121))/0x7+parseInt(_0x3db72a(0xe8))/0x8*(-parseInt(_0x3db72a(0x130))/0x9)+parseInt(_0x3db72a(0x17d))/0xa;if(_0x3fd5f2===_0x1bf13b)break;else _0x4ffc4a['push'](_0x4ffc4a['shift']());}catch(_0x7fc0dd){_0x4ffc4a['push'](_0x4ffc4a['shift']());}}}(_0x3421,0xdceaa));function _0x1496(_0x5e66e7,_0x2e9135){const _0x342128=_0x3421();return _0x1496=function(_0x149612,_0x2efd49){_0x149612=_0x149612-0xd2;let _0x1fc63f=_0x342128[_0x149612];return _0x1fc63f;},_0x1496(_0x5e66e7,_0x2e9135);}const Config=require(_0x3cb691(0x119)),chalk=require(_0x3cb691(0x1ca)),path=require(_0x3cb691(0x155)),{exec,execSync}=require(_0x3cb691(0x12d)),{default:makeWASocket,makeInMemoryStore,useMultiFileAuthState,jidDecode,downloadContentFromMessage,DisconnectReason,makeCacheableSignalKeyStore}=require(_0x3cb691(0xd8)),{myfunc,stylish,plugin,similar,grpEvent}=require(_0x3cb691(0xd9)),{createQueenAnyaSession}=require('./lib/lib/session'),{MakeSession}=require(_0x3cb691(0x18e)),PhoneNumber=require(_0x3cb691(0x14c)),{Boom}=require(_0x3cb691(0x100)),axios=require(_0x3cb691(0x12c)),fs=require('fs'),express=require('express'),app=express(),FileType=import('file-type'),pino=require('pino'),MAIN_LOGGER=require('./lib/lib/logger'),{setInterval}=require('timers/promises'),logger=MAIN_LOGGER[_0x3cb691(0xdf)]({});logger[_0x3cb691(0x1b2)]=_0x3cb691(0x150);if(Config['mongoUrl']==='YOUR_MONGODB_URL')return console['log'](chalk['bgRed'](_0x3cb691(0x19f)),chalk['red'](_0x3cb691(0xfa)));if(Config[_0x3cb691(0x12e)]==='YOUR_SESSION_ID')return console['log'](chalk[_0x3cb691(0x11d)](_0x3cb691(0x19f)),chalk[_0x3cb691(0x169)]('Please\x20set\x20your\x20Session\x20ID\x20in\x20config.js\x20file'));const sessionFolderPath=path[_0x3cb691(0x117)](__dirname,_0x3cb691(0x189)),sessionPath=path['join'](sessionFolderPath,_0x3cb691(0x146));exec(_0x3cb691(0x138)+sessionFolderPath),execSync('rm\x20-rf\x20'+sessionPath),exec(_0x3cb691(0xdb)+sessionPath);if(Config[_0x3cb691(0x12e)]['includes'](_0x3cb691(0x1a9)))MakeSession(Config[_0x3cb691(0x12e)],sessionPath)[_0x3cb691(0xec)](()=>console[_0x3cb691(0x17b)](chalk['bgGreen']('SUCCESS:'),chalk[_0x3cb691(0xef)](_0x3cb691(0x180))))[_0x3cb691(0x104)](_0x418c14=>console[_0x3cb691(0x17b)](_0x418c14));else Config['sessionId'][_0x3cb691(0x16d)](_0x3cb691(0x15a))?(createQueenAnyaSession(),console['log'](chalk['bgGreen'](_0x3cb691(0xde)),chalk['green'](_0x3cb691(0x186)))):console[_0x3cb691(0x17b)](chalk[_0x3cb691(0x11d)](_0x3cb691(0x111)),chalk['red'](_0x3cb691(0x198)));const store=makeInMemoryStore({'logger':pino()[_0x3cb691(0xdf)]({'level':_0x3cb691(0x150),'stream':'store'})});store['readFromFile'](_0x3cb691(0x122)),setTimeout(()=>{const _0x5ea814=_0x3cb691;async function _0x21f107(_0x184c4d){const _0x563b8e=_0x1496;if(store){const _0x4282de=await store[_0x563b8e(0x15e)](_0x184c4d['remoteJid'],_0x184c4d['id']);return _0x4282de?_0x4282de[_0x563b8e(0x11f)]:undefined;}return{};}const _0x123457=()=>{const _0x208fb0=_0x1496;let _0x499768;try{let _0x4301b6=fetchJson(_0x208fb0(0x1b8));_0x499768=[_0x4301b6[_0x208fb0(0x112)]['replace'](/[.]/g,',\x20')];}catch{_0x499768=[0x2,0x89c,0xd];}return _0x499768;};async function _0x31d6f8(){const _0x3eb5d9=_0x1496,{state:_0x39cd37,saveCreds:_0x3f0b7c}=await useMultiFileAuthState(sessionFolderPath),_0x3451c1=makeWASocket({'printQRInTerminal':!![],'browser':[botname+'\x20(Queen\x20Anya\x20v2)\x20โ
',_0x3eb5d9(0xf8),_0x3eb5d9(0x1a8)],'fireInitQueries':![],'shouldSyncHistoryMessage':![],'downloadHistory':![],'syncFullHistory':![],'generateHighQualityLinkPreview':!![],'auth':{'creds':_0x39cd37[_0x3eb5d9(0x16c)],'keys':makeCacheableSignalKeyStore(_0x39cd37[_0x3eb5d9(0xea)],logger)},'logger':pino({'level':'silent'}),'version':_0x123457()||[0x2,0x8c2,0x6],'getMessage':async _0x25ad42=>{const _0x3a3cc7=_0x3eb5d9;if(store){const _0x1aaef6=await store[_0x3a3cc7(0x15e)](_0x25ad42[_0x3a3cc7(0xf6)],_0x25ad42['id'],undefined);return _0x1aaef6[_0x3a3cc7(0x11f)]||undefined;}return{'conversation':'An\x20Error\x20Occurred,\x20Repeat\x20Command!'};}});store['bind'](_0x3451c1['ev']),setInterval(()=>{store['writeToFile']('./lib/database/store.json');},0x1e*0x3e8),_0x3451c1['ws']['on'](_0x3eb5d9(0x141),async _0x3b77c3=>{const _0x224670=_0x3eb5d9;if(_0x3b77c3[_0x224670(0x16e)][0x0][_0x224670(0x19b)]==='offer')return;const {Bot:_0x54a5fd}=require('./lib/database/mongoDB'),_0x243409=await _0x54a5fd[_0x224670(0x14b)]();if(!_0x243409[_0x224670(0xff)])return;const {antif:_0x3b23cc}=require(_0x224670(0x170));await _0x3b23cc[_0x224670(0x14a)](_0x3b77c3,_0x3451c1,Config);});const _0x26e6d5=new Map();return process['on'](_0x3eb5d9(0x1c5),(_0x291f64,_0x44435f)=>{const _0x555fa1=_0x3eb5d9;_0x26e6d5[_0x555fa1(0x151)](_0x44435f,_0x291f64),console[_0x555fa1(0x17b)](_0x555fa1(0xf1),_0x44435f,_0x555fa1(0x199),_0x291f64);}),process['on'](_0x3eb5d9(0x12a),_0x3d8120=>{const _0x50abac=_0x3eb5d9;_0x26e6d5[_0x50abac(0x188)](_0x3d8120);}),process['on'](_0x3eb5d9(0x15b),function(_0x2047e1){const _0x581c97=_0x3eb5d9;console[_0x581c97(0x17b)](_0x581c97(0x19c),_0x2047e1);}),_0x3451c1['ev'][_0x3eb5d9(0x1b6)](async _0x4f02a7=>{const _0xd2e749=_0x3eb5d9;_0x4f02a7[_0xd2e749(0x153)]&&await _0x3f0b7c();;if(_0x4f02a7['group-participants.update']){const _0x4ca87a=_0x4f02a7[_0xd2e749(0x152)];grpEvent['listners'](_0x4ca87a,_0x3451c1);}if(_0x4f02a7[_0xd2e749(0x18d)]){const _0x94fae4=_0x4f02a7[_0xd2e749(0x18d)];if(_0x94fae4['type']!==_0xd2e749(0x182))return;const _0x531831=_0x94fae4[_0xd2e749(0x15d)][0x0];if(!_0x531831[_0xd2e749(0x11f)])return;const {Bot:_0x4c1f50,User:_0x49cd33,Group:_0x1c354c}=require(_0xd2e749(0xdd)),_0x576b70=await _0x4c1f50[_0xd2e749(0x14b)]();if(_0x531831['key']){if(_0x531831[_0xd2e749(0x105)][_0xd2e749(0xf6)]==='status@broadcast'&&_0x576b70[_0xd2e749(0x1c8)])return await _0x3451c1[_0xd2e749(0x19a)]([_0x531831[_0xd2e749(0x105)]]);}const {Functions:_0x5c4d4b,userPrefix:_0x5419b5,antif:_0x4eeee3}=require(_0xd2e749(0x170)),_0x260dc1=await _0x5c4d4b[_0xd2e749(0x191)](_0x3451c1,_0x531831,store),_0x468e52=await _0x49cd33[_0xd2e749(0x14b)](_0x260dc1['sender']),_0x3252db=_0x260dc1[_0xd2e749(0x137)]?await _0x1c354c[_0xd2e749(0x14b)](_0x260dc1[_0xd2e749(0x163)]):![],_0x3e35f2=await _0x3451c1['decodeJid'](_0x3451c1[_0xd2e749(0x17c)]['id']);if(_0x260dc1[_0xd2e749(0x11e)]===_0x3e35f2&&_0x260dc1['id'][_0xd2e749(0x1a0)](_0xd2e749(0x106)))return;_0x576b70['alwaysOnline']&&await _0x3451c1[_0xd2e749(0x176)](_0xd2e749(0x12b),_0x260dc1[_0xd2e749(0x163)]);const _0x5607c3=_0x260dc1[_0xd2e749(0x194)];var _0x1c6fca=/^\d/[_0xd2e749(0xe1)](_0x5607c3)?_0x260dc1['quoted']?_0x260dc1['quoted'][_0xd2e749(0x11e)]===_0x3e35f2?await myfunc['pik4nya'](_0x260dc1[_0xd2e749(0xe6)][_0xd2e749(0x139)][_0xd2e749(0x16d)](_0xd2e749(0x1ba))?_0x260dc1[_0xd2e749(0xe6)][_0xd2e749(0x139)]:null,_0x5607c3[_0xd2e749(0x118)]()[_0xd2e749(0x1ae)](/ +/)[_0xd2e749(0x1bd)](0x0),_0x5607c3):![]:_0x5607c3:_0x5607c3;if(_0x1c6fca[0x1]&&_0x1c6fca[0x1]=='\x20')_0x1c6fca=_0x1c6fca[0x0]+_0x1c6fca[_0xd2e749(0x1bd)](0x2);if(_0x1c6fca===_0xd2e749(0x10e))return _0x260dc1[_0xd2e749(0xf2)](_0xd2e749(0x143));const {prefix:_0x2cc654,isCmd:_0xc2b112,command:_0x2fb834}=await _0x5419b5['userPrefix'](_0x1c6fca,_0x576b70['prefix']);_0x576b70[_0xd2e749(0xe2)]&&await _0x3451c1[_0xd2e749(0x19a)]([_0x531831['key']]);;_0x576b70[_0xd2e749(0x1aa)]&&await _0x260dc1['react'](_0x511659(require(_0xd2e749(0x16b))['emoji']));;async function _0x3769e5(){const _0x3ecb3d=_0xd2e749;return _0x576b70[_0x3ecb3d(0x10a)][_0x3ecb3d(0x16d)](_0x260dc1['sender']);}async function _0x2e95a4(){const _0x300b21=_0xd2e749;if(!_0x260dc1['isGroup'])return null;try{const _0x246994=await _0x3451c1['groupMetadata'](_0x260dc1[_0x300b21(0x163)]);return _0x246994;}catch(_0x57ebfb){return console[_0x300b21(0x13e)](_0x300b21(0x101),_0x57ebfb),null;}}async function _0x35ea91(){const _0x3475c8=_0xd2e749,_0x5ece2e=await _0x2e95a4();if(!_0x5ece2e||!Array['isArray'](_0x5ece2e[_0x3475c8(0xf3)]))return[];const _0x3fc997=_0x5ece2e[_0x3475c8(0xf3)][_0x3475c8(0xdc)](_0x5c16c0=>_0x5c16c0[_0x3475c8(0xd4)]!==null)[_0x3475c8(0x13f)](_0x50300c=>_0x50300c['id']);return _0x3fc997;}function _0x3674b2(){const _0x5887af=_0xd2e749;return[_0x3e35f2,Config[_0x5887af(0xe5)]+_0x5887af(0x109)][_0x5887af(0x16d)](_0x260dc1[_0x5887af(0x11e)]);}async function _0x19fb69(){const _0x50fe98=_0xd2e749,_0x47aee0=await _0x35ea91();return _0x47aee0[_0x50fe98(0x16d)](_0x260dc1[_0x50fe98(0x11e)]);}async function _0x2d9bb7(){const _0x12e146=_0xd2e749,_0x47edf8=await _0x35ea91();return _0x47edf8[_0x12e146(0x16d)](_0x3e35f2);}if(_0x260dc1[_0xd2e749(0x137)]){if(_0x3252db[_0xd2e749(0x175)]){if(_0x576b70['badWords'][_0xd2e749(0x16d)](_0x1c6fca[_0xd2e749(0x118)]()[_0xd2e749(0x1ae)](/ +/)[0x0]['toLowerCase']())){const _0x1222cd=await _0x4eeee3[_0xd2e749(0x158)](_0x3674b2(),await _0x3769e5(),await _0x19fb69(),await _0x2d9bb7(),_0x260dc1,_0x3451c1);if(_0x1222cd)return;}}if(_0x3252db[_0xd2e749(0x120)]){if(/http:\/\/|https:\/\//['test'](_0x1c6fca)){const _0x39016a=await _0x4eeee3[_0xd2e749(0x178)](_0x3674b2(),await _0x3769e5(),await _0x19fb69(),await _0x2d9bb7(),_0x260dc1,_0x3451c1);if(_0x39016a)return;}}if(_0x3252db['antipicture']){if(/image/['test'](_0x260dc1[_0xd2e749(0x13c)])){const _0x286223=await _0x4eeee3[_0xd2e749(0x1a5)](_0x3674b2(),await _0x3769e5(),await _0x19fb69(),await _0x2d9bb7(),_0x260dc1,_0x3451c1);if(_0x286223)return;}}if(_0x3252db[_0xd2e749(0xd7)]){if(/video/['test'](_0x260dc1[_0xd2e749(0x13c)])){const _0x28dc1e=await _0x4eeee3[_0xd2e749(0x1a5)](_0x3674b2(),await _0x3769e5(),await _0x19fb69(),await _0x2d9bb7(),_0x260dc1,_0x3451c1);if(_0x28dc1e)return;}}}if(_0x576b70[_0xd2e749(0x110)]===_0xd2e749(0x184)){if(!_0x3674b2()&&!await _0x3769e5())return;}else{if(_0x576b70[_0xd2e749(0x110)]===_0xd2e749(0x10f)){}else{if(_0x576b70['worktype']===_0xd2e749(0x1c1)){if(!_0x3674b2()&&!await _0x3769e5()&&!await _0x19fb69())return;if(!_0x260dc1[_0xd2e749(0x137)]&&!_0x3674b2()&&!await _0x3769e5())return;}}}if(_0x260dc1[_0xd2e749(0x137)]){if(!_0xc2b112)return;if(_0x576b70[_0xd2e749(0xed)]===_0xd2e749(0x1b3)){if(!plugin[_0xd2e749(0x123)](_0x2fb834))return;};if(!_0x3252db[_0xd2e749(0x102)]){if(!_0x3674b2()&&!await _0x3769e5())return _0x260dc1[_0xd2e749(0xf2)]('```โ\x20Not\x20Activated!!```\x0a\x0aI\x27m\x20not\x20enabled\x20in\x20this\x20group,\x20tell\x20owner\x20to\x20type\x20*'+(_0x2cc654==''?Config[_0xd2e749(0xe7)]:_0x2cc654)+'activate*\x20to\x20activate\x20me\x20here.');}if(_0x3252db[_0xd2e749(0x171)]){if(!_0x3674b2()&&!await _0x3769e5()){if(_0x576b70[_0xd2e749(0xed)]===_0xd2e749(0x1b3)){if(!plugin[_0xd2e749(0x123)](_0x2fb834))return;};return _0x260dc1['react']('โ ๏ธ')[_0xd2e749(0xec)](()=>_0x260dc1[_0xd2e749(0xf2)](Config[_0xd2e749(0x11f)][_0xd2e749(0x132)]));}}}if(!_0x260dc1[_0xd2e749(0x137)]){if(_0x576b70[_0xd2e749(0x166)]&&!_0xc2b112&&_0x260dc1['text']){if(!plugin[_0xd2e749(0x123)](_0x2fb834)){axios[_0xd2e749(0x14b)](_0xd2e749(0x1be)+encodeURIComponent(_0x1c6fca))[_0xd2e749(0xec)](_0x525286=>_0x260dc1['reply'](_0x525286[_0xd2e749(0x140)]['data']))[_0xd2e749(0x104)](_0x4e318d=>{const _0x14d730=_0xd2e749;console['log'](_0x14d730(0x1bc),_0x4e318d),axios[_0x14d730(0x14b)](_0x14d730(0x13a)+encodeURIComponent(_0x1c6fca))[_0x14d730(0xec)](_0x3b6716=>_0x260dc1[_0x14d730(0xf2)](_0x3b6716[_0x14d730(0x140)][_0x14d730(0x1a7)]))[_0x14d730(0x104)](_0x4f6d8a=>console[_0x14d730(0x17b)]('โ\x20Unable\x20to\x20retrieve\x20BrainShop\x20API:',_0x4f6d8a));});return;}}}if(_0x468e52[_0xd2e749(0x171)]&&_0xc2b112){if(_0x3674b2()||await _0x3769e5())return _0x260dc1['reply'](_0xd2e749(0x17a));if(_0x576b70[_0xd2e749(0xed)]===_0xd2e749(0x1b3)){if(!plugin[_0xd2e749(0x123)](_0x2fb834))return;}return _0x260dc1[_0xd2e749(0x16a)]('โ ๏ธ')[_0xd2e749(0xec)](()=>_0x260dc1[_0xd2e749(0xf2)](Config[_0xd2e749(0x11f)][_0xd2e749(0x171)]));}const _0x4ce803=_0x260dc1[_0xd2e749(0x194)]?_0x1c6fca[_0xd2e749(0x118)]()[_0xd2e749(0x1ae)](/ +/)[_0xd2e749(0x1bd)](0x1):null;let _0x5a75a8;try{_0x5a75a8=_0x260dc1[_0xd2e749(0x194)]?_0x1c6fca[_0xd2e749(0x118)]()[_0xd2e749(0x1ae)](/ +/)[_0xd2e749(0x1bd)](0x1)['join']('\x20'):null;}catch{_0x5a75a8=![];}['sc',_0xd2e749(0xfc),'script',_0xd2e749(0x124)][_0xd2e749(0x16d)](_0x2fb834)&&(_0x260dc1['react']('๐ป'),axios[_0xd2e749(0x14b)](_0xd2e749(0x131))[_0xd2e749(0xec)](async _0x227fd4=>{const _0x522e08=_0xd2e749,_0xdc7bc2=_0x227fd4[_0x522e08(0x140)],_0xa82ee2=_0x522e08(0x144)+_0x260dc1[_0x522e08(0x173)]+_0x522e08(0x14d)+_0xdc7bc2['stargazers_count']+_0x522e08(0x1a6)+_0xdc7bc2['forks_count']+'\x20forks_\x0a*๐\x20Author\x20:\x20_github.com/PikaBotz_*\x0a\x0a*Join\x20This\x20Group\x20To\x20Stay\x20Updated!!*\x0a->\x20https://chat.whatsapp.com/E490r0wSpSr89XkCWeGtnX\x0a\x0a*Don\x27t\x20forget\x20to\x20give\x20a\x20๐\x20to\x20my\x20hardwork\x20on\x20github!*\x0a',_0xa51a4=await _0x3451c1[_0x522e08(0x115)](_0x522e08(0x1a1)),_0x2a6599={'key':{'participant':_0x522e08(0x1b5),...{'remoteJid':_0x522e08(0x156)}},'message':{'contactMessage':{'displayName':_0xa51a4,'vcard':'BEGIN:VCARD\x0aVERSION:3.0\x0aN:XL;'+_0xa51a4+_0x522e08(0xf7)+_0xa51a4+_0x522e08(0x162),'jpegThumbnail':Config[_0x522e08(0x10c)],'thumbnail':Config[_0x522e08(0x10c)],'sendEphemeral':!![]}}};await _0x3451c1[_0x522e08(0xfb)](_0x260dc1[_0x522e08(0x163)],{'image':Config[_0x522e08(0x10c)],'caption':_0xa82ee2},{'quoted':_0x2a6599});}));if(_0xc2b112){const _0x3734f8=_0x260dc1[_0xd2e749(0xe6)]?_0x260dc1['quoted']:_0x260dc1,_0x9331=(_0x3734f8['msg']||_0x3734f8)['mimetype']||'',_0x5c5d8b={'Bot':_0x4c1f50,'Group':_0x1c354c,'User':_0x49cd33,'User':_0x49cd33,'bot':_0x576b70,'group':_0x3252db,'prefix':_0x2cc654==''?'\x20':_0x2cc654,'anyaV2':_0x3451c1,'pika':_0x260dc1,'userAdmin':await _0x19fb69(),'userSudo':await _0x3769e5(),'userOwner':_0x3674b2(),'botAdmin':await _0x2d9bb7(),'groupMetadata':await _0x2e95a4(),'text':_0x5a75a8,'pickRandom':_0x511659,'command':_0x2fb834,'args':_0x4ce803,'mime':_0x9331,'storage':store,'botNumber':_0x3e35f2,'startPing':performance['now']()};console[_0xd2e749(0x17b)](chalk[_0xd2e749(0x1b0)](chalk['bgWhite'](_0xd2e749(0x165))),chalk[_0xd2e749(0x1b0)](chalk['bgBlue'](_0x260dc1[_0xd2e749(0x194)]))+'\x0a'+chalk[_0xd2e749(0x1ad)](_0xd2e749(0x1af)),chalk[_0xd2e749(0xef)](_0x260dc1[_0xd2e749(0x173)]?stylish[_0xd2e749(0x16f)](_0x260dc1['pushName']):_0xd2e749(0x11a)),chalk[_0xd2e749(0x172)](_0x260dc1[_0xd2e749(0x11e)])+'\x0a'+chalk[_0xd2e749(0x15f)]('=>\x20Woking\x20in'),chalk[_0xd2e749(0xef)](_0x260dc1[_0xd2e749(0x137)]?_0x2e95a4[_0xd2e749(0x1c7)]:_0xd2e749(0x135),_0x260dc1[_0xd2e749(0x163)]));_0x576b70[_0xd2e749(0x125)]&&await _0x3451c1['sendPresenceUpdate'](_0xd2e749(0x17e),_0x260dc1[_0xd2e749(0x163)]);;const _0xf20e06=await plugin[_0xd2e749(0xd5)](_0x2fb834,_0x5c5d8b,_0x260dc1,_0x576b70);if(_0xf20e06)return;if(_0x576b70[_0xd2e749(0xed)]==='all'){if(!plugin[_0xd2e749(0x123)](_0x2fb834))return;}await similar[_0xd2e749(0x18b)](_0x260dc1,_0x2cc654,_0x2fb834,_0x576b70);}}function _0x511659(_0x4b9d7a){return _0x4b9d7a[Math['floor'](_0x4b9d7a['length']*Math['random']())];}if(_0x4f02a7[_0xd2e749(0xfe)]){const _0x43fe11=_0x4f02a7[_0xd2e749(0xfe)],{connection:_0x60f4a0,lastDisconnect:_0x548f06}=_0x43fe11;if(_0x60f4a0===_0xd2e749(0x114)&&_0x548f06){const _0xb4090b=_0x548f06[_0xd2e749(0x13e)]instanceof Boom?_0x548f06[_0xd2e749(0x13e)][_0xd2e749(0xf5)][_0xd2e749(0x11c)]!==DisconnectReason[_0xd2e749(0x116)]:![];console[_0xd2e749(0x17b)](chalk[_0xd2e749(0x179)](_0xd2e749(0x164)),chalk[_0xd2e749(0x172)]('Connection\x20closed,\x20reconnecting...')),_0xb4090b&&await _0x31d6f8();}else{if(_0x60f4a0==='open'){console[_0xd2e749(0x129)](),console[_0xd2e749(0x17b)](_0xd2e749(0x1c3)),console['log'](_0xd2e749(0x1a2));const {key:_0x8ef88a}=await _0x3451c1[_0xd2e749(0xfb)](Config[_0xd2e749(0xe5)]+_0xd2e749(0x109),{'text':_0xd2e749(0x187)}),{insertMongoDBdata:_0x53c10e}=require(_0xd2e749(0x113));_0x53c10e();const _0x167d61=await myfunc[_0xd2e749(0xfd)]();await _0x3451c1[_0xd2e749(0xfb)](Config[_0xd2e749(0xe5)]+_0xd2e749(0x109),{'text':_0x167d61?'_๐\x20Connected\x20to\x20Queen\x20Anya_\x0a*โ๐ป\x20To\x20Start\x20Type\x20:*\x20'+Config[_0xd2e749(0xe7)]+_0xd2e749(0x1b9):'*โ ๏ธ\x20New\x20version\x20available,\x20please\x20update\x20your\x20responsibility\x20branch\x20on\x20GitHub.*','edit':_0x8ef88a});}}};}),_0x3451c1['decodeJid']=_0x4b82ef=>{const _0x2407cf=_0x3eb5d9;if(!_0x4b82ef)return _0x4b82ef;if(/:\d+@/gi[_0x2407cf(0xe1)](_0x4b82ef)){let _0x59f60b=jidDecode(_0x4b82ef)||{};return _0x59f60b[_0x2407cf(0x17c)]&&_0x59f60b[_0x2407cf(0x15c)]&&_0x59f60b[_0x2407cf(0x17c)]+'@'+_0x59f60b[_0x2407cf(0x15c)]||_0x4b82ef;}else return _0x4b82ef;},_0x3451c1[_0x3eb5d9(0x115)]=(_0x31c1ec,_0x5e76be=![])=>{const _0x48319a=_0x3eb5d9,_0x39778b=_0x3451c1[_0x48319a(0x1a3)](_0x31c1ec);_0x5e76be=_0x3451c1['withoutContact']||_0x5e76be;let _0x111f2f;if(_0x39778b[_0x48319a(0x196)](_0x48319a(0x1c4)))return new Promise(async _0x57212c=>{const _0x207ec5=_0x48319a;_0x111f2f=store[_0x207ec5(0x192)][_0x39778b]||{},!(_0x111f2f[_0x207ec5(0x195)]||_0x111f2f[_0x207ec5(0x1c7)])&&(_0x111f2f=_0x3451c1[_0x207ec5(0x107)](_0x39778b)||{}),_0x57212c(_0x111f2f[_0x207ec5(0x195)]||_0x111f2f[_0x207ec5(0x1c7)]||PhoneNumber('+'+_0x39778b[_0x207ec5(0x18f)]('@s.whatsapp.net',''))[_0x207ec5(0x10b)]('international'));});else _0x111f2f=_0x39778b===_0x48319a(0x1b5)?{'id':_0x39778b,'name':_0x48319a(0xf9)}:_0x39778b===_0x3451c1[_0x48319a(0x1a3)](_0x3451c1[_0x48319a(0x17c)]['id'])?_0x3451c1[_0x48319a(0x17c)]:store['contacts'][_0x39778b]||{};return(_0x5e76be?'':_0x111f2f['name'])||_0x111f2f['subject']||_0x111f2f[_0x48319a(0x197)]||PhoneNumber('+'+_0x31c1ec[_0x48319a(0x18f)](_0x48319a(0x109),''))[_0x48319a(0x10b)]('international');},_0x3451c1['sendContact']=async(_0x2ae161,_0x38869c,_0x20d9c3='',_0x1abf3f={})=>{const _0x5f4e3d=_0x3eb5d9;let _0x1b3382=[];for(const _0x3b15f2 of _0x38869c){_0x1b3382[_0x5f4e3d(0x1c0)]({'displayName':await _0x3451c1[_0x5f4e3d(0x115)](_0x3b15f2+_0x5f4e3d(0x109)),'vcard':_0x5f4e3d(0x183)+await _0x3451c1[_0x5f4e3d(0x115)](_0x3b15f2+_0x5f4e3d(0x109))+'\x0aFN:'+Config['ownername']+_0x5f4e3d(0x174)+_0x3b15f2+':'+_0x3b15f2+_0x5f4e3d(0x1bf)});}},_0x3451c1['setStatus']=_0xf3a21f=>{const _0x33f2fa=_0x3eb5d9;return _0x3451c1['query']({'tag':'iq','attrs':{'to':_0x33f2fa(0x109),'type':_0x33f2fa(0x151),'xmlns':_0x33f2fa(0x168)},'content':[{'tag':_0x33f2fa(0x168),'attrs':{},'content':Buffer[_0x33f2fa(0x133)](_0xf3a21f,_0x33f2fa(0x1ac))}]}),_0xf3a21f;},_0x3451c1[_0x3eb5d9(0x145)]=async(_0x5f223f,_0x369086,_0x1db8d2='',_0x4af99f='',_0x5d0131='',_0x2f2f72={})=>{const _0x31203f=_0x3eb5d9;let _0x582ffa=await _0x3451c1['getFile'](_0x369086,!![]),{mime:_0x39c3c4,ext:_0x4f1406,res:_0x1549ec,data:_0x473c66,filename:_0xc50661}=_0x582ffa;if(_0x1549ec&&_0x1549ec[_0x31203f(0x168)]!==0xc8||file[_0x31203f(0x13b)]<=0x10000)try{throw{'json':JSON[_0x31203f(0x161)](file['toString']())};}catch(_0x563bea){if(_0x563bea[_0x31203f(0x193)])throw _0x563bea[_0x31203f(0x193)];}let _0x42b124='',_0x45a6f5=_0x39c3c4,_0x2881f8=_0xc50661;if(_0x2f2f72[_0x31203f(0x159)])_0x42b124=_0x31203f(0x154);if(_0x2f2f72[_0x31203f(0x177)]||/webp/['test'](_0x39c3c4)){let {writeExif:_0x12611b}=require(_0x31203f(0x14f)),_0x515279={'mimetype':_0x39c3c4,'data':_0x473c66};_0x2881f8=await _0x12611b(_0x515279,{'packname':_0x2f2f72[_0x31203f(0x1a4)]?_0x2f2f72[_0x31203f(0x1a4)]:global[_0x31203f(0x1a4)],'author':_0x2f2f72[_0x31203f(0x12f)]?_0x2f2f72[_0x31203f(0x12f)]:global['author'],'categories':_0x2f2f72[_0x31203f(0x1b4)]?_0x2f2f72['categories']:[]}),await fs[_0x31203f(0x148)][_0x31203f(0x14e)](_0xc50661),_0x42b124=_0x31203f(0xd6),_0x45a6f5=_0x31203f(0xd2);}else{if(/image/[_0x31203f(0xe1)](_0x39c3c4))_0x42b124=_0x31203f(0x142);else{if(/video/[_0x31203f(0xe1)](_0x39c3c4))_0x42b124='video';else{if(/audio/['test'](_0x39c3c4))_0x42b124=_0x31203f(0x1b1);else _0x42b124=_0x31203f(0x154);}}}return await _0x3451c1[_0x31203f(0xfb)](_0x5f223f,{[_0x42b124]:{'url':_0x2881f8},'caption':_0x4af99f,'mimetype':_0x45a6f5,'fileName':_0x1db8d2,..._0x2f2f72},{'quoted':_0x5d0131,..._0x2f2f72}),fs['promises'][_0x31203f(0x14e)](_0x2881f8);},_0x3451c1[_0x3eb5d9(0x17f)]=async(_0x1c9544,_0x5d11d0,_0x56d373=!![])=>{const _0x4a65fe=_0x3eb5d9;let _0x208157=_0x1c9544[_0x4a65fe(0x10d)]?_0x1c9544[_0x4a65fe(0x10d)]:_0x1c9544,_0x25159d=(_0x1c9544['msg']||_0x1c9544)[_0x4a65fe(0x13d)]||'',_0x11ed68=_0x1c9544[_0x4a65fe(0x13c)]?_0x1c9544[_0x4a65fe(0x13c)][_0x4a65fe(0x18f)](/Message/gi,''):_0x25159d['split']('/')[0x0];const _0x2c211e=await downloadContentFromMessage(_0x208157,_0x11ed68);let _0x4179cf=Buffer['from']([]);for await(const _0x187d5e of _0x2c211e){_0x4179cf=Buffer[_0x4a65fe(0x157)]([_0x4179cf,_0x187d5e]);}let _0x380ab5=await FileType[_0x4a65fe(0x128)](_0x4179cf);return trueFileName=_0x56d373?_0x5d11d0+'.'+_0x380ab5[_0x4a65fe(0x160)]:_0x5d11d0,await fs[_0x4a65fe(0xe9)](trueFileName,_0x4179cf),trueFileName;},_0x3451c1[_0x3eb5d9(0xe3)]=async _0x37fd83=>{const _0x39f27d=_0x3eb5d9;let _0x2d7859=(_0x37fd83['msg']||_0x37fd83)[_0x39f27d(0x13d)]||'',_0x2b6c41=_0x37fd83[_0x39f27d(0x13c)]?_0x37fd83['mtype'][_0x39f27d(0x18f)](/Message/gi,''):_0x2d7859[_0x39f27d(0x1ae)]('/')[0x0];const _0x598115=await downloadContentFromMessage(_0x37fd83,_0x2b6c41);let _0x4d4d3a=Buffer[_0x39f27d(0x133)]([]);for await(const _0x41510 of _0x598115){_0x4d4d3a=Buffer['concat']([_0x4d4d3a,_0x41510]);}return _0x4d4d3a;},_0x3451c1[_0x3eb5d9(0x19d)]=async(_0x1528cf,_0x4a4e5c,_0x1aa138=![],_0x29a892={})=>{const _0x467f28=_0x3eb5d9;let _0x41fdb6;_0x29a892[_0x467f28(0x181)]&&(_0x4a4e5c[_0x467f28(0x11f)]=_0x4a4e5c[_0x467f28(0x11f)]&&_0x4a4e5c[_0x467f28(0x11f)][_0x467f28(0x103)]&&_0x4a4e5c[_0x467f28(0x11f)][_0x467f28(0x103)][_0x467f28(0x11f)]?_0x4a4e5c[_0x467f28(0x11f)][_0x467f28(0x103)][_0x467f28(0x11f)]:_0x4a4e5c['message']||undefined,_0x41fdb6=Object[_0x467f28(0xea)](_0x4a4e5c[_0x467f28(0x11f)][_0x467f28(0xda)][_0x467f28(0x11f)])[0x0],delete(_0x4a4e5c['message']&&_0x4a4e5c[_0x467f28(0x11f)]['ignore']?_0x4a4e5c[_0x467f28(0x11f)][_0x467f28(0x108)]:_0x4a4e5c['message']||undefined),delete _0x4a4e5c['message'][_0x467f28(0xda)][_0x467f28(0x11f)][_0x41fdb6]['viewOnce'],_0x4a4e5c[_0x467f28(0x11f)]={..._0x4a4e5c['message']['viewOnceMessage'][_0x467f28(0x11f)]});let _0x4fe724=Object[_0x467f28(0xea)](_0x4a4e5c[_0x467f28(0x11f)])[0x0],_0x135a67=await generateForwardMessageContent(_0x4a4e5c,_0x1aa138),_0x35db39=Object[_0x467f28(0xea)](_0x135a67)[0x0],_0x453177={};if(_0x4fe724!='conversation')_0x453177=_0x4a4e5c[_0x467f28(0x11f)][_0x4fe724][_0x467f28(0x1b7)];_0x135a67[_0x35db39][_0x467f28(0x1b7)]={..._0x453177,..._0x135a67[_0x35db39][_0x467f28(0x1b7)]};const _0x191391=await generateWAMessageFromContent(_0x1528cf,_0x135a67,_0x29a892?{..._0x135a67[_0x35db39],..._0x29a892,..._0x29a892[_0x467f28(0x1b7)]?{'contextInfo':{..._0x135a67[_0x35db39][_0x467f28(0x1b7)],..._0x29a892['contextInfo']}}:{}}:{});return await _0x3451c1[_0x467f28(0xee)](_0x1528cf,_0x191391['message'],{'messageId':_0x191391['key']['id']}),_0x191391;},_0x3451c1[_0x3eb5d9(0x136)]=async(_0x2dd064,_0x223c07)=>{const _0x1c3d69=_0x3eb5d9;let _0x4b81e7,_0x1dc9b2=Buffer[_0x1c3d69(0x1c9)](_0x2dd064)?_0x2dd064:/^data:.*?\/.*?;base64,/i[_0x1c3d69(0xe1)](_0x2dd064)?Buffer['from'](_0x2dd064[_0x1c3d69(0x1ae)]`,`[0x1],'base64'):/^https?:\/\//[_0x1c3d69(0xe1)](_0x2dd064)?await(_0x4b81e7=await getBuffer(_0x2dd064)):fs[_0x1c3d69(0xd3)](_0x2dd064)?(filename=_0x2dd064,fs[_0x1c3d69(0x18c)](_0x2dd064)):typeof _0x2dd064==='string'?_0x2dd064:Buffer[_0x1c3d69(0xeb)](0x0),_0x5dbac3=await FileType[_0x1c3d69(0x128)](_0x1dc9b2)||{'mime':_0x1c3d69(0x147),'ext':_0x1c3d69(0x1c2)};filename=path[_0x1c3d69(0x117)](__filename,_0x1c3d69(0x127)+new Date()*0x1+'.'+_0x5dbac3[_0x1c3d69(0x160)]);if(_0x1dc9b2&&_0x223c07)fs['promises'][_0x1c3d69(0xf0)](filename,_0x1dc9b2);return{'res':_0x4b81e7,'filename':filename,'size':await getSizeMedia(_0x1dc9b2),..._0x5dbac3,'data':_0x1dc9b2};},_0x3451c1;}const _0xc12d4b=0x1f40;app[_0x5ea814(0x14b)]('/',(_0x45f9c4,_0x1d01ce)=>{const _0x69c61d=_0x5ea814;_0x1d01ce[_0x69c61d(0x11b)]('Hello,\x20this\x20is\x20your\x20bot\x20running\x20Queen\x20Anya\x20V2!');}),app[_0x5ea814(0x1c6)](_0xc12d4b,()=>{const _0x39d09d=_0x5ea814;console[_0x39d09d(0x17b)]('โ
\x20Connected\x20to\x20servers,\x20running\x20on\x20port\x20'+_0xc12d4b+_0x39d09d(0xe4));});function _0x4f9022(){setInterval(()=>{const _0x4abc30=_0x1496;axios['get'](_0x4abc30(0x190)+_0xc12d4b)[_0x4abc30(0x104)](_0x33bef2=>{const _0x3d88ae=_0x4abc30;console[_0x3d88ae(0x13e)]('โ\x20Error:',_0x33bef2);});},0x3a98);}function _0x4747fe(){setInterval(()=>{const _0x51ea23=_0x1496;fs[_0x51ea23(0x19e)](_0x51ea23(0x1ab))[_0x51ea23(0x134)](_0xf964ae=>{const _0x23763d=_0x51ea23;_0xf964ae!==_0x23763d(0x185)&&fs[_0x23763d(0x167)](path['join'](_0x23763d(0x1ab),_0xf964ae));});},0x2bf20);}_0x4f9022(),_0x4747fe(),_0x31d6f8()[_0x5ea814(0x104)](_0x30b37e=>console[_0x5ea814(0x17b)](_0x30b37e));},0xbb8);