-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.js
3 lines (2 loc) · 12 KB
/
main.js
1
2
3
//Lamriiii Ada yg mau nyuri
function _0x6678(){const _0x5d0263=['./handler','handler','PORT','loggedOut','ffmpeg','yargs/yargs','4695436HFjGVg','write','output','existsSync','credsUpdate','sessions','-hide_banner','135UhpSns','length','messages.upsert','--version','trace','Hai\x20@user\x20Selamat\x20Datang\x0a\x0aDi\x20Grup\x20@subject\x0a@desc\x20Patuhi\x20rules\x20yang\x20card\x20ada','@adiwajshing/baileys','syntax-error','onDelete','spawn','sdemote','tmp','logger','isArray','ffprobe','error','1084759VgOvsg','Please\x20install\x20ffmpeg\x20for\x20sending\x20videos\x20(pkg\x20install\x20ffmpeg)','-frames:v','Selamat\x20tinggal\x20@user','843lKRSBG','catch','freeze','exitProcess','deleted\x20plugin\x20\x27','read','./config','timestamp','resolve','Stickers\x20may\x20not\x20animated\x20without\x20libwebp\x20on\x20ffmpeg\x20(--enable-ibwebp\x20while\x20compiling\x20ffmpeg)','fromEntries','bye','6741942NAjWoC','re\x20-\x20require\x20plugin\x20\x27','localeCompare','chain','APIs','warn','group-participants.update','data','argv','READ','API','object','plugins','uncaughtException','CONNECTING','pino','8089116YNZNhX','-delete','close','join','participantsUpdate','spromote','Quick\x20Test\x20Done','5SvqWfk','replace','\x5c$&','map','convert','-amin','isInit','welcome','lodash','loadDatabase','connect','conn','@user\x20sekarang\x20bukan\x20admin!','off','APIKeys','sort','readyState','prefix','path','info','cache','entries','9502CZZmil','connection.update','database.json','31273920lcQAbi','reloadHandler','forEach','find','connectionUpdate','keys','makeWASocket','magick','webp','race','slice','-type','@user\x20sekarang\x20admin!','isBuffer','watch','log','bind','filter','message.delete','test','then','readFileSync','Stickers\x20may\x20not\x20work\x20without\x20imagemagick\x20if\x20libwebp\x20on\x20ffmpeg\x20doesnt\x20isntalled\x20(pkg\x20install\x20imagemagick)','env','reload','761528azkfsN','support'];_0x6678=function(){return _0x5d0263;};return _0x6678();}function _0xf5a5(_0x3edbd9,_0x12f3dc){const _0x66789f=_0x6678();return _0xf5a5=function(_0xf5a556,_0x48369b){_0xf5a556=_0xf5a556-0x160;let _0x30eebb=_0x66789f[_0xf5a556];return _0x30eebb;},_0xf5a5(_0x3edbd9,_0x12f3dc);}(function(_0x608875,_0x505e83){const _0x3847c5=_0xf5a5,_0x52670a=_0x608875();while(!![]){try{const _0x5edd76=-parseInt(_0x3847c5(0x1b4))/0x1+-parseInt(_0x3847c5(0x179))/0x2*(-parseInt(_0x3847c5(0x1b8))/0x3)+-parseInt(_0x3847c5(0x19d))/0x4*(-parseInt(_0x3847c5(0x163))/0x5)+-parseInt(_0x3847c5(0x1c4))/0x6+-parseInt(_0x3847c5(0x1d4))/0x7+parseInt(_0x3847c5(0x195))/0x8*(-parseInt(_0x3847c5(0x1a4))/0x9)+parseInt(_0x3847c5(0x17c))/0xa;if(_0x5edd76===_0x505e83)break;else _0x52670a['push'](_0x52670a['shift']());}catch(_0x1909aa){_0x52670a['push'](_0x52670a['shift']());}}}(_0x6678,0xce27d),((async()=>{const _0x14631f=_0xf5a5;require(_0x14631f(0x1be));const {useSingleFileAuthState:_0x19b652,useMultiFileAuthState:_0x15baaa,DisconnectReason:_0x3a275b}=require(_0x14631f(0x1aa)),_0x4d7f56=require('ws'),_0x578cd1=require(_0x14631f(0x175)),_0x1bac9f=require('fs'),_0x443324=require(_0x14631f(0x19c)),_0x343a93=require('child_process'),_0x37aa72=require(_0x14631f(0x16b)),_0x44a0d9=require(_0x14631f(0x1ab)),_0x47c14e=require(_0x14631f(0x1d3)),_0x28c84c=require('os');let _0x8b7ade=require('./lib/simple');var _0x2a5aef;try{_0x2a5aef=require('lowdb');}catch(_0x556d94){_0x2a5aef=require('./lib/lowdb');}const {Low:_0x510aa3,JSONFile:_0x310c57}=_0x2a5aef,_0x2c035b=require('./lib/mongoDB');global[_0x14631f(0x1ce)]=(_0x410e2d,_0x4778ae='/',_0x4c3db2={},_0x40d2fd)=>(_0x410e2d in global[_0x14631f(0x1c8)]?global[_0x14631f(0x1c8)][_0x410e2d]:_0x410e2d)+_0x4778ae+(_0x4c3db2||_0x40d2fd?'?'+new URLSearchParams(Object[_0x14631f(0x178)]({..._0x4c3db2,..._0x40d2fd?{[_0x40d2fd]:global[_0x14631f(0x171)][_0x410e2d in global[_0x14631f(0x1c8)]?global[_0x14631f(0x1c8)][_0x410e2d]:_0x410e2d]}:{}})):''),global['timestamp']={'start':new Date()};const _0x34442f=process[_0x14631f(0x193)][_0x14631f(0x199)]||0xbb8;global['opts']=new Object(_0x443324(process[_0x14631f(0x1cc)][_0x14631f(0x186)](0x2))[_0x14631f(0x1bb)](![])['parse']()),global[_0x14631f(0x174)]=new RegExp('^['+(opts[_0x14631f(0x174)]||'xzXZ/i!#$%+£¢€¥^°=¶∆×÷π√✓©®:;?&.\x5c-')[_0x14631f(0x164)](/[|\\{}()[\]^$+*?.\-\^]/g,_0x14631f(0x165))+']'),global['db']=new _0x510aa3(/https?:\/\//[_0x14631f(0x18f)](opts['db']||'')?new cloudDBAdapter(opts['db']):/mongodb/[_0x14631f(0x18f)](opts['db'])?new _0x2c035b(opts['db']):new _0x310c57((opts['_'][0x0]?opts['_'][0x0]+'_':'')+_0x14631f(0x17b))),global['DATABASE']=global['db'],global['loadDatabase']=async function _0xc3a9e3(){const _0x1b3e1f=_0x14631f;if(global['db'][_0x1b3e1f(0x1cd)])return new Promise(_0x1c856e=>setInterval(function(){const _0x39fc03=_0x1b3e1f;!global['db'][_0x39fc03(0x1cd)]?(clearInterval(this),_0x1c856e(global['db'][_0x39fc03(0x1cb)]==null?global[_0x39fc03(0x16c)]():global['db'][_0x39fc03(0x1cb)])):null;},0x1*0x3e8));if(global['db'][_0x1b3e1f(0x1cb)]!==null)return;global['db'][_0x1b3e1f(0x1cd)]=!![],await global['db'][_0x1b3e1f(0x1bd)](),global['db'][_0x1b3e1f(0x1cd)]=![],global['db'][_0x1b3e1f(0x1cb)]={'users':{},'chats':{},'stats':{},'msgs':{},'sticker':{},...global['db'][_0x1b3e1f(0x1cb)]||{}},global['db'][_0x1b3e1f(0x1c7)]=_0x37aa72[_0x1b3e1f(0x1c7)](global['db'][_0x1b3e1f(0x1cb)]);},loadDatabase();const _0x4302e4=''+(opts['_'][0x0]||_0x14631f(0x1a2));global[_0x14631f(0x169)]=!_0x1bac9f['existsSync'](_0x4302e4);const {state:_0x1118a3,saveState:_0x4e13ea,saveCreds:_0x251fe3}=await _0x15baaa(_0x4302e4),_0x4ba1ec={'printQRInTerminal':!![],'auth':_0x1118a3,'logger':_0x47c14e({'level':_0x14631f(0x1a8)}),'version':[0x2,0x89c,0xd]};global[_0x14631f(0x16e)]=_0x8b7ade[_0x14631f(0x182)](_0x4ba1ec);if(!opts[_0x14631f(0x18f)]){if(global['db'])setInterval(async()=>{const _0x1d596e=_0x14631f;if(global['db'][_0x1d596e(0x1cb)])await global['db'][_0x1d596e(0x19e)]();if(!opts[_0x1d596e(0x1af)]&&(global['support']||{})[_0x1d596e(0x17f)])tmp=[_0x28c84c['tmpdir'](),_0x1d596e(0x1af)],tmp[_0x1d596e(0x17e)](_0x1b8eb9=>_0x343a93[_0x1d596e(0x1ad)](_0x1d596e(0x17f),[_0x1b8eb9,_0x1d596e(0x168),'3',_0x1d596e(0x187),'f',_0x1d596e(0x1d5)]));},0x1e*0x3e8);}async function _0x2d84c5(_0x5a3f4f){const _0x4fa7d3=_0x14631f,{connection:_0x37cece,lastDisconnect:_0xc7f315}=_0x5a3f4f;global[_0x4fa7d3(0x1bf)][_0x4fa7d3(0x16d)]=new Date();_0xc7f315&&_0xc7f315[_0x4fa7d3(0x1b3)]&&_0xc7f315[_0x4fa7d3(0x1b3)][_0x4fa7d3(0x19f)]&&_0xc7f315[_0x4fa7d3(0x1b3)][_0x4fa7d3(0x19f)]['statusCode']!==_0x3a275b[_0x4fa7d3(0x19a)]&&conn['ws'][_0x4fa7d3(0x173)]!==_0x4d7f56[_0x4fa7d3(0x1d2)]&&console['log'](global[_0x4fa7d3(0x17d)](!![]));if(global['db']['data']==null)await loadDatabase();}process['on'](_0x14631f(0x1d1),console[_0x14631f(0x1b3)]);const _0x52028a=_0x3ff107=>{const _0x24fc48=_0x14631f;_0x3ff107=require[_0x24fc48(0x1c0)](_0x3ff107);let _0x2b3ab7,_0x20d0af=0x0;do{if(_0x3ff107 in require[_0x24fc48(0x177)])delete require[_0x24fc48(0x177)][_0x3ff107];_0x2b3ab7=require(_0x3ff107),_0x20d0af++;}while((!_0x2b3ab7||(Array[_0x24fc48(0x1b1)](_0x2b3ab7)||_0x2b3ab7 instanceof String)?!(_0x2b3ab7||[])[_0x24fc48(0x1a5)]:typeof _0x2b3ab7==_0x24fc48(0x1cf)&&!Buffer[_0x24fc48(0x189)](_0x2b3ab7)?!Object[_0x24fc48(0x181)](_0x2b3ab7||{})[_0x24fc48(0x1a5)]:!![])&&_0x20d0af<=0xa);return _0x2b3ab7;};let _0x1814dc=!![];global[_0x14631f(0x17d)]=function(_0x48e880){const _0x86f11e=_0x14631f;let _0x53a78d=_0x52028a(_0x86f11e(0x197));if(_0x48e880){try{global[_0x86f11e(0x16e)]['ws'][_0x86f11e(0x1d6)]();}catch{}global[_0x86f11e(0x16e)]={...global['conn'],..._0x8b7ade[_0x86f11e(0x182)](_0x4ba1ec)};}return!_0x1814dc&&(conn['ev'][_0x86f11e(0x170)](_0x86f11e(0x1a6),conn[_0x86f11e(0x198)]),conn['ev']['off'](_0x86f11e(0x1ca),conn[_0x86f11e(0x160)]),conn['ev'][_0x86f11e(0x170)](_0x86f11e(0x18e),conn[_0x86f11e(0x1ac)]),conn['ev'][_0x86f11e(0x170)](_0x86f11e(0x17a),conn[_0x86f11e(0x180)]),conn['ev']['off']('creds.update',conn['credsUpdate'])),conn[_0x86f11e(0x16a)]=_0x86f11e(0x1a9),conn[_0x86f11e(0x1c3)]=_0x86f11e(0x1b7),conn[_0x86f11e(0x161)]=_0x86f11e(0x188),conn[_0x86f11e(0x1ae)]=_0x86f11e(0x16f),conn[_0x86f11e(0x198)]=_0x53a78d[_0x86f11e(0x198)][_0x86f11e(0x18c)](conn),conn[_0x86f11e(0x160)]=_0x53a78d['participantsUpdate']['bind'](conn),conn['onDelete']=_0x53a78d['delete'][_0x86f11e(0x18c)](conn),conn[_0x86f11e(0x180)]=_0x2d84c5[_0x86f11e(0x18c)](conn),conn[_0x86f11e(0x1a1)]=_0x251fe3[_0x86f11e(0x18c)](conn),conn['ev']['on']('messages.upsert',conn[_0x86f11e(0x198)]),conn['ev']['on']('group-participants.update',conn['participantsUpdate']),conn['ev']['on'](_0x86f11e(0x18e),conn[_0x86f11e(0x1ac)]),conn['ev']['on'](_0x86f11e(0x17a),conn['connectionUpdate']),conn['ev']['on']('creds.update',conn[_0x86f11e(0x1a1)]),_0x1814dc=![],!![];};let _0xfb1b71=_0x578cd1[_0x14631f(0x1d7)](__dirname,_0x14631f(0x1d0)),_0x1e5e16=_0x1d429a=>/\.js$/[_0x14631f(0x18f)](_0x1d429a);global['plugins']={};for(let _0x688e83 of _0x1bac9f['readdirSync'](_0xfb1b71)[_0x14631f(0x18d)](_0x1e5e16)){try{global['plugins'][_0x688e83]=require(_0x578cd1[_0x14631f(0x1d7)](_0xfb1b71,_0x688e83));}catch(_0x1a8c8b){conn[_0x14631f(0x1b0)][_0x14631f(0x1b3)](_0x1a8c8b),delete global[_0x14631f(0x1d0)][_0x688e83];}}console[_0x14631f(0x18b)](Object[_0x14631f(0x181)](global[_0x14631f(0x1d0)])),global[_0x14631f(0x194)]=(_0x149d66,_0x34263a)=>{const _0x15df8f=_0x14631f;if(_0x1e5e16(_0x34263a)){let _0x491280=_0x578cd1[_0x15df8f(0x1d7)](_0xfb1b71,_0x34263a);if(_0x491280 in require[_0x15df8f(0x177)]){delete require[_0x15df8f(0x177)][_0x491280];if(_0x1bac9f[_0x15df8f(0x1a0)](_0x491280))conn[_0x15df8f(0x1b0)][_0x15df8f(0x176)](_0x15df8f(0x1c5)+_0x34263a+'\x27');else return conn[_0x15df8f(0x1b0)][_0x15df8f(0x1c9)](_0x15df8f(0x1bc)+_0x34263a+'\x27'),delete global['plugins'][_0x34263a];}else conn[_0x15df8f(0x1b0)][_0x15df8f(0x176)]('requiring\x20new\x20plugin\x20\x27'+_0x34263a+'\x27');let _0x4b07a3=_0x44a0d9(_0x1bac9f[_0x15df8f(0x191)](_0x491280),_0x34263a);if(_0x4b07a3)conn[_0x15df8f(0x1b0)][_0x15df8f(0x1b3)]('syntax\x20error\x20while\x20loading\x20\x27'+_0x34263a+'\x27\x0a'+_0x4b07a3);else try{global[_0x15df8f(0x1d0)][_0x34263a]=require(_0x491280);}catch(_0x462cef){conn[_0x15df8f(0x1b0)]['error'](_0x462cef);}finally{global[_0x15df8f(0x1d0)]=Object[_0x15df8f(0x1c2)](Object[_0x15df8f(0x178)](global[_0x15df8f(0x1d0)])[_0x15df8f(0x172)](([_0x569000],[_0x4b632c])=>_0x569000[_0x15df8f(0x1c6)](_0x4b632c)));}}},Object[_0x14631f(0x1ba)](global[_0x14631f(0x194)]),_0x1bac9f[_0x14631f(0x18a)](_0x578cd1[_0x14631f(0x1d7)](__dirname,_0x14631f(0x1d0)),global[_0x14631f(0x194)]),global[_0x14631f(0x17d)]();async function _0xc983ed(){const _0x2e95f9=_0x14631f;let _0x128dc7=await Promise['all']([_0x343a93[_0x2e95f9(0x1ad)](_0x2e95f9(0x19b)),_0x343a93['spawn'](_0x2e95f9(0x1b2)),_0x343a93[_0x2e95f9(0x1ad)](_0x2e95f9(0x19b),[_0x2e95f9(0x1a3),'-loglevel',_0x2e95f9(0x1b3),'-filter_complex','color',_0x2e95f9(0x1b6),'1','-f',_0x2e95f9(0x184),'-']),_0x343a93[_0x2e95f9(0x1ad)](_0x2e95f9(0x167)),_0x343a93[_0x2e95f9(0x1ad)](_0x2e95f9(0x183)),_0x343a93[_0x2e95f9(0x1ad)]('gm'),_0x343a93[_0x2e95f9(0x1ad)](_0x2e95f9(0x17f),[_0x2e95f9(0x1a7)])][_0x2e95f9(0x166)](_0x5e10de=>{const _0xeec8d1=_0x2e95f9;return Promise[_0xeec8d1(0x185)]([new Promise(_0x43c204=>{const _0x10c5b7=_0xeec8d1;_0x5e10de['on'](_0x10c5b7(0x1d6),_0x192478=>{_0x43c204(_0x192478!==0x7f);});}),new Promise(_0x329e19=>{const _0x3b7580=_0xeec8d1;_0x5e10de['on'](_0x3b7580(0x1b3),_0x1fa190=>_0x329e19(![]));})]);})),[_0x599989,_0x2284c9,_0x508c85,_0x324e46,_0x184075,_0x267cc6,_0x4373f6]=_0x128dc7;console[_0x2e95f9(0x18b)](_0x128dc7);let _0x2ad939=global[_0x2e95f9(0x196)]={'ffmpeg':_0x599989,'ffprobe':_0x2284c9,'ffmpegWebp':_0x508c85,'convert':_0x324e46,'magick':_0x184075,'gm':_0x267cc6,'find':_0x4373f6};Object[_0x2e95f9(0x1ba)](global[_0x2e95f9(0x196)]);if(!_0x2ad939[_0x2e95f9(0x19b)])conn['logger'][_0x2e95f9(0x1c9)](_0x2e95f9(0x1b5));if(_0x2ad939[_0x2e95f9(0x19b)]&&!_0x2ad939['ffmpegWebp'])conn[_0x2e95f9(0x1b0)]['warn'](_0x2e95f9(0x1c1));if(!_0x2ad939[_0x2e95f9(0x167)]&&!_0x2ad939[_0x2e95f9(0x183)]&&!_0x2ad939['gm'])conn[_0x2e95f9(0x1b0)]['warn'](_0x2e95f9(0x192));}_0xc983ed()[_0x14631f(0x190)](()=>conn['logger']['info'](_0x14631f(0x162)))[_0x14631f(0x1b9)](console[_0x14631f(0x1b3)]);})()));