forked from BOTCAHX/RTXZY-MD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
1 lines (1 loc) · 14.8 KB
/
main.js
1
function _0x10d1(){const _0x3a293a=['./handler','2038362hHSCnb','authState','loggedOut','lowdb','ffmpegWebp','off','some','creds.update','--\x20using\x20WA\x20v','233455xSndMT','chain','freeze',',\x20isLatest:\x20','ffmpeg','exitProcess','https://raw.githubusercontent.com/WhiskeySockets/Baileys/master/src/Defaults/baileys-version.json','connection.update','deleted\x20plugin\x20\x27','1069713FyPlIZ','ffprobe','entries','yellow','onDelete','keys','./lib/simple','APIKeys','close','readFileSync','-filter_complex','node-fetch','--\x20Please\x20wait,\x20generating\x20code...\x20--','support','plugins','race','child_process','-loglevel','forEach','credsUpdate','write','log','512134GirtRW','88cFXbwb','test','listMessage','reloadHandler','Stickers\x20may\x20not\x20work\x20without\x20imagemagick\x20if\x20libwebp\x20on\x20ffmpeg\x20doesnt\x20isntalled\x20(pkg\x20install\x20imagemagick)','createInterface','logger','./lib/mongoDB','prefix','existsSync','join','slice','APIs','tmpdir','env','conn','lodash','match','welcome','localeCompare','READ','includes','parse','done','fromEntries','readline','message.delete','connectionUpdate','map','warn','silent','requestPairingCode','version','bgGreen','black','445732mLHQZA','Selamat\x20datang\x20@user\x20di\x20group\x20@subject\x20utamakan\x20baca\x20desk\x20ya\x20\x0a@desc','--mobile','makeWASocket','CONNECTING','sort','\x20--','demote','cache','bind','magick','@adiwajshing/baileys','find','readdirSync','-frames:v','isBuffer','templateMessage','requiring\x20new\x20plugin\x20\x27','@user\x20sekarang\x20bukan\x20admin!','Quick\x20Test\x20Done','reload','syntax\x20error\x20while\x20loading\x20\x27','creds','ENTER\x20A\x20VALID\x20NUMBER\x20START\x20WITH\x20REGION\x20CODE.\x20Example\x20:\x2062xxx:\x0a','messages.upsert','bye','white','chalk','tmp','stdout','912582qIXorI','data','isArray','Chrome\x20(Linux)','argv','output','question','./config','readyState','webp','convert','42VSDDuw','--\x20WARNING:\x20creds.json\x20is\x20broken,\x20please\x20delete\x20it\x20first\x20--','-delete','bgWhite','API','participantsUpdate','buttonsMessage','group-participants.update','loadDatabase','promote','info','--version','exit','object','color','handler','timestamp','1471758wKZHLY','registered','uncaughtException','Please\x20install\x20ffmpeg\x20for\x20sending\x20videos\x20(pkg\x20install\x20ffmpeg)','syntax-error','PORT','spawn','pino','json','replace','statusCode','error','xzXZ/i!#$%+£¢€¥^°=¶∆×÷π√✓©®:;?&.\x5c-'];_0x10d1=function(){return _0x3a293a;};return _0x10d1();}function _0x4b53(_0x336740,_0x51f671){const _0x10d133=_0x10d1();return _0x4b53=function(_0x4b536a,_0x2a3012){_0x4b536a=_0x4b536a-0x89;let _0x584594=_0x10d133[_0x4b536a];return _0x584594;},_0x4b53(_0x336740,_0x51f671);}(function(_0xbcd118,_0x458b12){const _0x54d8ed=_0x4b53,_0x3d9620=_0xbcd118();while(!![]){try{const _0x5bdeed=-parseInt(_0x54d8ed(0xe7))/0x1+-parseInt(_0x54d8ed(0x103))/0x2+parseInt(_0x54d8ed(0x111))/0x3+-parseInt(_0x54d8ed(0xc9))/0x4+parseInt(_0x54d8ed(0x11a))/0x5*(parseInt(_0x54d8ed(0xf2))/0x6)+-parseInt(_0x54d8ed(0xa5))/0x7+-parseInt(_0x54d8ed(0xa6))/0x8*(-parseInt(_0x54d8ed(0x8f))/0x9);if(_0x5bdeed===_0x458b12)break;else _0x3d9620['push'](_0x3d9620['shift']());}catch(_0x2bda5b){_0x3d9620['push'](_0x3d9620['shift']());}}}(_0x10d1,0x75596),((async()=>{const _0x310c11=_0x4b53;require(_0x310c11(0xee));const {useMultiFileAuthState:_0x136dd3,DisconnectReason:_0x2b55e1,generateForwardMessageContent:_0x1db825,prepareWAMessageMedia:_0x39df5d,generateWAMessageFromContent:_0x23c580,generateMessageID:_0x405a54,downloadContentFromMessage:_0x421bd4,makeInMemoryStore:_0xa3736c,jidDecode:_0x116c35,PHONENUMBER_MCC:_0x449371,fetchLatestBaileysVersion:_0x295c62,proto:_0x49951a}=require(_0x310c11(0xd4)),_0x703620=require(_0x310c11(0x10a)),_0x5da3ca=require('ws'),_0x3a8364=require('path'),_0x4df9fe=require('fs'),_0x15868f=require('yargs/yargs'),_0x43dc58=require(_0x310c11(0x9f)),_0x5e54b9=require(_0x310c11(0xb6)),_0x5843a3=require(_0x310c11(0x107)),_0x52f9a2=require(_0x310c11(0x10a)),_0x1cc27f=require('os'),_0x3c1274=require(_0x310c11(0x9a)),_0x19f2c5=require(_0x310c11(0xe4));let _0x40fc0f=require(_0x310c11(0x95));var _0xa00ea5;try{_0xa00ea5=require(_0x310c11(0x114));}catch(_0x54ae25){_0xa00ea5=require('./lib/lowdb');}const {Low:_0x57c2b1,JSONFile:_0x2cadb7}=_0xa00ea5,_0x4b1754=require(_0x310c11(0xad)),_0x1883f4=require(_0x310c11(0xbf)),_0x592431=process[_0x310c11(0xeb)][_0x310c11(0xbb)]('--code')||process[_0x310c11(0xeb)][_0x310c11(0xbb)]('--pairing'),_0x15c0df=process[_0x310c11(0xeb)][_0x310c11(0xbb)](_0x310c11(0xcb)),_0x7d35bb=_0x1883f4[_0x310c11(0xab)]({'input':process['stdin'],'output':process[_0x310c11(0xe6)]}),_0x276e81=_0x52c602=>new Promise(_0x2071ff=>_0x7d35bb[_0x310c11(0xed)](_0x52c602,_0x2071ff));global[_0x310c11(0xf6)]=(_0x3f019b,_0x4d82e2='/',_0x2ecb9e={},_0x12c0ab)=>(_0x3f019b in global[_0x310c11(0xb2)]?global[_0x310c11(0xb2)][_0x3f019b]:_0x3f019b)+_0x4d82e2+(_0x2ecb9e||_0x12c0ab?'?'+new URLSearchParams(Object[_0x310c11(0x91)]({..._0x2ecb9e,..._0x12c0ab?{[_0x12c0ab]:global[_0x310c11(0x96)][_0x3f019b in global['APIs']?global['APIs'][_0x3f019b]:_0x3f019b]}:{}})):''),global[_0x310c11(0x102)]={'start':new Date()};const _0x1fe69f=process[_0x310c11(0xb4)][_0x310c11(0x108)]||0xbb8;global['opts']=new Object(_0x15868f(process[_0x310c11(0xeb)][_0x310c11(0xb1)](0x2))[_0x310c11(0x8b)](![])[_0x310c11(0xbc)]()),global[_0x310c11(0xae)]=new RegExp('^['+(opts[_0x310c11(0xae)]||_0x310c11(0x10f))[_0x310c11(0x10c)](/[|\\{}()[\]^$+*?.\-\^]/g,'\x5c$&')+']'),global['db']=new _0x57c2b1(/https?:\/\//['test'](opts['db']||'')?new cloudDBAdapter(opts['db']):/mongodb/[_0x310c11(0xa7)](opts['db'])?new _0x4b1754(opts['db']):new _0x2cadb7((opts['_'][0x0]?opts['_'][0x0]+'_':'')+'database.json')),global['DATABASE']=global['db'],global[_0x310c11(0xfa)]=async function _0x55b887(){const _0x29f438=_0x310c11;if(global['db']['READ'])return new Promise(_0x57aec5=>setInterval(function(){const _0x10a92c=_0x4b53;!global['db'][_0x10a92c(0xba)]?(clearInterval(this),_0x57aec5(global['db'][_0x10a92c(0xe8)]==null?global[_0x10a92c(0xfa)]():global['db']['data'])):null;},0x1*0x3e8));if(global['db']['data']!==null)return;global['db'][_0x29f438(0xba)]=!![],await global['db']['read'](),global['db'][_0x29f438(0xba)]=![],global['db'][_0x29f438(0xe8)]={'users':{},'chats':{},'stats':{},'msgs':{},'sticker':{},...global['db'][_0x29f438(0xe8)]||{}},global['db'][_0x29f438(0x11b)]=_0x5e54b9['chain'](global['db'][_0x29f438(0xe8)]);},loadDatabase();const _0x1f1297=''+(opts['_'][0x0]||'sessions');global['isInit']=!_0x4df9fe[_0x310c11(0xaf)](_0x1f1297);const {state:_0x5aabb5,saveState:_0x3c7b93,saveCreds:_0x1bb584}=await _0x136dd3(_0x1f1297),{version:_0x351ac2,isLatest:_0x32d7c3}=await _0x295c62();console['log'](_0x19f2c5['magenta'](_0x310c11(0x119)+_0x351ac2[_0x310c11(0xb0)]('.')+_0x310c11(0x89)+_0x32d7c3+_0x310c11(0xcf)));const _0x16fdbd={'printQRInTerminal':!_0x592431,'syncFullHistory':!![],'markOnlineOnConnect':!![],'connectTimeoutMs':0xea60,'defaultQueryTimeoutMs':0x0,'keepAliveIntervalMs':0x2710,'generateHighQualityLinkPreview':!![],'patchMessageBeforeSending':_0x49d23a=>{const _0x188b9a=_0x310c11,_0x25ae62=!!(_0x49d23a[_0x188b9a(0xf8)]||_0x49d23a[_0x188b9a(0xd9)]||_0x49d23a[_0x188b9a(0xa8)]);return _0x25ae62&&(_0x49d23a={'viewOnceMessage':{'message':{'messageContextInfo':{'deviceListMetadataVersion':0x2,'deviceListMetadata':{}},..._0x49d23a}}}),_0x49d23a;},'auth':_0x5aabb5,'browser':[_0x310c11(0xea)],'logger':_0x703620({'level':_0x310c11(0xc4)}),'version':(await(await _0x3c1274(_0x310c11(0x8c)))[_0x310c11(0x10b)]())[_0x310c11(0xc6)]};global['conn']=_0x40fc0f[_0x310c11(0xcc)](_0x16fdbd);if(!opts['test']){if(global['db'])setInterval(async()=>{const _0x3faf8d=_0x310c11;if(global['db']['data'])await global['db'][_0x3faf8d(0xa3)]();if(!opts[_0x3faf8d(0xe5)]&&(global['support']||{})[_0x3faf8d(0xd5)])tmp=[_0x1cc27f[_0x3faf8d(0xb3)](),'tmp'],tmp[_0x3faf8d(0xa1)](_0x3be028=>_0x43dc58[_0x3faf8d(0x109)]('find',[_0x3be028,'-amin','3','-type','f',_0x3faf8d(0xf4)]));},0x1e*0x3e8);}async function _0x3af8dc(_0x240b9a){const _0x3caa0d=_0x310c11,{connection:_0x394db0,lastDisconnect:_0x3bdca2}=_0x240b9a;global[_0x3caa0d(0x102)]['connect']=new Date();_0x3bdca2&&_0x3bdca2[_0x3caa0d(0x10e)]&&_0x3bdca2[_0x3caa0d(0x10e)][_0x3caa0d(0xec)]&&_0x3bdca2[_0x3caa0d(0x10e)]['output'][_0x3caa0d(0x10d)]!==_0x2b55e1[_0x3caa0d(0x113)]&&conn['ws'][_0x3caa0d(0xef)]!==_0x5da3ca[_0x3caa0d(0xcd)]&&console[_0x3caa0d(0xa4)](global[_0x3caa0d(0xa9)](!![]));if(global['db']['data']==null)await loadDatabase();}(_0x592431||_0x15c0df)&&_0x4df9fe[_0x310c11(0xaf)]('./sessions/creds.json')&&!conn[_0x310c11(0x112)][_0x310c11(0xdf)][_0x310c11(0x104)]&&(console[_0x310c11(0xa4)](_0x19f2c5[_0x310c11(0x92)](_0x310c11(0xf3))),process[_0x310c11(0xfe)](0x0));if(_0x592431&&!conn['authState'][_0x310c11(0xdf)]['registered']){if(_0x15c0df)throw new Error('Cannot\x20use\x20pairing\x20code\x20with\x20mobile\x20api');const {registration:_0x435179}={'registration':{}};let _0x69d10a='';do{_0x69d10a=await _0x276e81(_0x19f2c5['blueBright'](_0x310c11(0xe0)));}while(!Object[_0x310c11(0x94)](_0x449371)[_0x310c11(0x117)](_0x21f2eb=>_0x69d10a['startsWith'](_0x21f2eb)));_0x7d35bb[_0x310c11(0x97)](),_0x69d10a=_0x69d10a[_0x310c11(0x10c)](/\D/g,''),console[_0x310c11(0xa4)](_0x19f2c5[_0x310c11(0xf5)](_0x19f2c5['blue'](_0x310c11(0x9b)))),setTimeout(async()=>{const _0x56096f=_0x310c11;let _0xa178a5=await conn[_0x56096f(0xc5)](_0x69d10a);_0xa178a5=_0xa178a5?.[_0x56096f(0xb7)](/.{1,4}/g)?.[_0x56096f(0xb0)]('-')||_0xa178a5,console[_0x56096f(0xa4)](_0x19f2c5[_0x56096f(0xc8)](_0x19f2c5[_0x56096f(0xc7)]('Your\x20Pairing\x20Code\x20:\x20')),_0x19f2c5[_0x56096f(0xc8)](_0x19f2c5[_0x56096f(0xe3)](_0xa178a5)));},0xbb8);}process['on'](_0x310c11(0x105),console[_0x310c11(0x10e)]);const _0x4298df=_0x38d56f=>{const _0x31f824=_0x310c11;_0x38d56f=require['resolve'](_0x38d56f);let _0x36333b,_0x2b06b1=0x0;do{if(_0x38d56f in require[_0x31f824(0xd1)])delete require[_0x31f824(0xd1)][_0x38d56f];_0x36333b=require(_0x38d56f),_0x2b06b1++;}while((!_0x36333b||(Array[_0x31f824(0xe9)](_0x36333b)||_0x36333b instanceof String)?!(_0x36333b||[])['length']:typeof _0x36333b==_0x31f824(0xff)&&!Buffer[_0x31f824(0xd8)](_0x36333b)?!Object[_0x31f824(0x94)](_0x36333b||{})['length']:!![])&&_0x2b06b1<=0xa);return _0x36333b;};let _0x2d0edc=!![];global[_0x310c11(0xa9)]=function(_0x3c51f6){const _0x15f488=_0x310c11;let _0x5d4b85=_0x4298df(_0x15f488(0x110));if(_0x3c51f6){try{global[_0x15f488(0xb5)]['ws'][_0x15f488(0x97)]();}catch{}global['conn']={...global[_0x15f488(0xb5)],..._0x40fc0f['makeWASocket'](_0x16fdbd)};}return!_0x2d0edc&&(conn['ev']['off'](_0x15f488(0xe1),conn['handler']),conn['ev']['off']('group-participants.update',conn[_0x15f488(0xf7)]),conn['ev'][_0x15f488(0x116)](_0x15f488(0xc0),conn[_0x15f488(0x93)]),conn['ev'][_0x15f488(0x116)](_0x15f488(0x8d),conn['connectionUpdate']),conn['ev'][_0x15f488(0x116)](_0x15f488(0x118),conn[_0x15f488(0xa2)])),conn[_0x15f488(0xb8)]=_0x15f488(0xca),conn[_0x15f488(0xe2)]='Selamat\x20tinggal\x20@user\x20👋',conn[_0x15f488(0xfb)]='@user\x20sekarang\x20admin!',conn[_0x15f488(0xd0)]=_0x15f488(0xdb),conn[_0x15f488(0x101)]=_0x5d4b85[_0x15f488(0x101)][_0x15f488(0xd2)](conn),conn[_0x15f488(0xf7)]=_0x5d4b85[_0x15f488(0xf7)][_0x15f488(0xd2)](conn),conn[_0x15f488(0x93)]=_0x5d4b85['delete'][_0x15f488(0xd2)](conn),conn[_0x15f488(0xc1)]=_0x3af8dc[_0x15f488(0xd2)](conn),conn[_0x15f488(0xa2)]=_0x1bb584[_0x15f488(0xd2)](conn),conn['ev']['on'](_0x15f488(0xe1),conn[_0x15f488(0x101)]),conn['ev']['on'](_0x15f488(0xf9),conn['participantsUpdate']),conn['ev']['on'](_0x15f488(0xc0),conn[_0x15f488(0x93)]),conn['ev']['on']('connection.update',conn[_0x15f488(0xc1)]),conn['ev']['on'](_0x15f488(0x118),conn[_0x15f488(0xa2)]),_0x2d0edc=![],!![];};let _0x157df6=_0x3a8364['join'](__dirname,'plugins'),_0x56c766=_0x49ec79=>/\.js$/[_0x310c11(0xa7)](_0x49ec79);global[_0x310c11(0x9d)]={};for(let _0x46d6cf of _0x4df9fe[_0x310c11(0xd6)](_0x157df6)['filter'](_0x56c766)){try{global[_0x310c11(0x9d)][_0x46d6cf]=require(_0x3a8364[_0x310c11(0xb0)](_0x157df6,_0x46d6cf));}catch(_0x1bbded){conn['logger'][_0x310c11(0x10e)](_0x1bbded),delete global['plugins'][_0x46d6cf];}}console[_0x310c11(0xa4)](Object[_0x310c11(0x94)](global['plugins'])),global['reload']=(_0x45a333,_0x20bb89)=>{const _0x3d2d46=_0x310c11;if(_0x56c766(_0x20bb89)){let _0x39f5e6=_0x3a8364[_0x3d2d46(0xb0)](_0x157df6,_0x20bb89);if(_0x39f5e6 in require[_0x3d2d46(0xd1)]){delete require['cache'][_0x39f5e6];if(_0x4df9fe[_0x3d2d46(0xaf)](_0x39f5e6))conn[_0x3d2d46(0xac)][_0x3d2d46(0xfc)]('re\x20-\x20require\x20plugin\x20\x27'+_0x20bb89+'\x27');else return conn['logger'][_0x3d2d46(0xc3)](_0x3d2d46(0x8e)+_0x20bb89+'\x27'),delete global[_0x3d2d46(0x9d)][_0x20bb89];}else conn[_0x3d2d46(0xac)][_0x3d2d46(0xfc)](_0x3d2d46(0xda)+_0x20bb89+'\x27');let _0x3c5b47=_0x5843a3(_0x4df9fe[_0x3d2d46(0x98)](_0x39f5e6),_0x20bb89);if(_0x3c5b47)conn[_0x3d2d46(0xac)]['error'](_0x3d2d46(0xde)+_0x20bb89+'\x27\x0a'+_0x3c5b47);else try{global[_0x3d2d46(0x9d)][_0x20bb89]=require(_0x39f5e6);}catch(_0x9f0964){conn['logger'][_0x3d2d46(0x10e)](_0x9f0964);}finally{global['plugins']=Object[_0x3d2d46(0xbe)](Object[_0x3d2d46(0x91)](global[_0x3d2d46(0x9d)])[_0x3d2d46(0xce)](([_0x29729b],[_0x90f7ee])=>_0x29729b[_0x3d2d46(0xb9)](_0x90f7ee)));}}},Object['freeze'](global[_0x310c11(0xdd)]),_0x4df9fe['watch'](_0x3a8364['join'](__dirname,'plugins'),global[_0x310c11(0xdd)]),global[_0x310c11(0xa9)]();async function _0x205153(){const _0x20e521=_0x310c11;let _0x4b1d90=await Promise['all']([_0x43dc58['spawn'](_0x20e521(0x8a)),_0x43dc58['spawn'](_0x20e521(0x90)),_0x43dc58[_0x20e521(0x109)]('ffmpeg',['-hide_banner',_0x20e521(0xa0),'error',_0x20e521(0x99),_0x20e521(0x100),_0x20e521(0xd7),'1','-f',_0x20e521(0xf0),'-']),_0x43dc58[_0x20e521(0x109)](_0x20e521(0xf1)),_0x43dc58[_0x20e521(0x109)](_0x20e521(0xd3)),_0x43dc58[_0x20e521(0x109)]('gm'),_0x43dc58[_0x20e521(0x109)](_0x20e521(0xd5),[_0x20e521(0xfd)])][_0x20e521(0xc2)](_0x3e40e2=>{const _0xdfb5eb=_0x20e521;return Promise[_0xdfb5eb(0x9e)]([new Promise(_0x56afce=>{const _0x50a5d5=_0xdfb5eb;_0x3e40e2['on'](_0x50a5d5(0x97),_0x2d4cd6=>{_0x56afce(_0x2d4cd6!==0x7f);});}),new Promise(_0x26945c=>{_0x3e40e2['on']('error',_0x1b9f56=>_0x26945c(![]));})]);})),[_0x1336f4,_0x438af3,_0x8ad4e0,_0x1e347a,_0x3d95be,_0x40c7dc,_0x260f15]=_0x4b1d90;console[_0x20e521(0xa4)](_0x4b1d90);let _0x56371e=global[_0x20e521(0x9c)]={'ffmpeg':_0x1336f4,'ffprobe':_0x438af3,'ffmpegWebp':_0x8ad4e0,'convert':_0x1e347a,'magick':_0x3d95be,'gm':_0x40c7dc,'find':_0x260f15};Object[_0x20e521(0x11c)](global[_0x20e521(0x9c)]);if(!_0x56371e[_0x20e521(0x8a)])conn[_0x20e521(0xac)][_0x20e521(0xc3)](_0x20e521(0x106));if(_0x56371e['ffmpeg']&&!_0x56371e[_0x20e521(0x115)])conn[_0x20e521(0xac)][_0x20e521(0xc3)]('Stickers\x20may\x20not\x20animated\x20without\x20libwebp\x20on\x20ffmpeg\x20(--enable-ibwebp\x20while\x20compiling\x20ffmpeg)');if(!_0x56371e[_0x20e521(0xf1)]&&!_0x56371e[_0x20e521(0xd3)]&&!_0x56371e['gm'])conn[_0x20e521(0xac)][_0x20e521(0xc3)](_0x20e521(0xaa));}_0x205153()['then'](()=>conn['logger'][_0x310c11(0xfc)](_0x310c11(0xdc)))['catch'](_0x310c11(0xbd));})()));