-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathmain.js
More file actions
3 lines (3 loc) ยท 14.2 KB
/
main.js
File metadata and controls
3 lines (3 loc) ยท 14.2 KB
1
2
3
/*Kgk Ada apaยฒ disini om :)
info selanjutnya cek baca_!!.js*/
(function(_0x4b9fea,_0x1f37a9){const _0x4b9b44=_0x4b9fea();function _0x40af93(_0x313a28,_0x377fe1){return _0x1522(_0x313a28-0x17,_0x377fe1);}while(!![]){try{const _0x406287=parseInt(_0x40af93(0x13d,0x115))/0x1*(parseInt(_0x40af93(0xf8,0x116))/0x2)+-parseInt(_0x40af93(0x102,0x123))/0x3*(-parseInt(_0x40af93(0x118,0x105))/0x4)+parseInt(_0x40af93(0x13e,0x159))/0x5+-parseInt(_0x40af93(0x13c,0x125))/0x6+-parseInt(_0x40af93(0x111,0xf8))/0x7+-parseInt(_0x40af93(0x109,0x13a))/0x8*(parseInt(_0x40af93(0x12d,0x146))/0x9)+parseInt(_0x40af93(0x14e,0x17b))/0xa;if(_0x406287===_0x1f37a9)break;else _0x4b9b44['push'](_0x4b9b44['shift']());}catch(_0x318a65){_0x4b9b44['push'](_0x4b9b44['shift']());}}}(_0x403f,0x78dd3));function _0x1522(_0x5cb89d,_0x3cbcbb){const _0x403f6c=_0x403f();return _0x1522=function(_0x1522ff,_0x586876){_0x1522ff=_0x1522ff-0xd3;let _0x405c4e=_0x403f6c[_0x1522ff];return _0x405c4e;},_0x1522(_0x5cb89d,_0x3cbcbb);}const {WAConnection,MessageType,Presence,Mimetype,GroupSettingChange}=require(_0x3c1b2b(-0x140,-0x16b)),Dhani=new WAConnection(),fs=require('fs'),moment=require(_0x3c1b2b(-0x16e,-0x177)),{wait,banner,getBuffer,h2k,generateMessageID,getGroupAdmins,getRandom,start,info,success,close}=require('./lib/functions'),{color}=require(_0x3c1b2b(-0x1e3,-0x1d4)),_welkom=JSON[_0x3c1b2b(-0x182,-0x1ba)](fs[_0x3c1b2b(-0x180,-0x179)](_0x3c1b2b(-0x1c2,-0x1b2)));function _0x3c1b2b(_0x510359,_0x173e79){return _0x1522(_0x173e79- -0x2b1,_0x510359);}const setting=JSON['parse'](fs[_0x3c1b2b(-0x144,-0x179)]('./setting.json'));prefix='#',namaowner=setting[_0x3c1b2b(-0x1de,-0x1c4)],botname=setting[_0x3c1b2b(-0x1f9,-0x1d9)],owner=setting[_0x3c1b2b(-0x1fd,-0x1d7)],require(_0x3c1b2b(-0x1ab,-0x1a1)),nocache(_0x3c1b2b(-0x1d1,-0x1a1),_0x585dc0=>console[_0x3c1b2b(-0x1d9,-0x1c1)](_0x585dc0+_0x3c1b2b(-0x18c,-0x1c5)));const starts=async(_0x570a24=new WAConnection())=>{_0x570a24[_0x3e1250(0x315,0x2f1)][_0x3e1250(0x2b4,0x2dc)]=_0x3e1250(0x29e,0x2d1),_0x570a24['version']=[0x2,0x85f,0x3],_0x570a24[_0x3e1250(0x29c,0x2cf)]=[_0x3e1250(0x2e8,0x2ca),_0x3e1250(0x2bc,0x2c9),'3.0.0'],console[_0x3e1250(0x2ae,0x2a8)](color(_0x3e1250(0x2fe,0x2d5),'white'),color(_0x3e1250(0x2c4,0x2d9))),console['log'](color(_0x3e1250(0x29b,0x28d),_0x3e1250(0x2f3,0x2c6)),color(_0x3e1250(0x27e,0x29d)+ownername+_0x3e1250(0x2ce,0x2cc)+botname+_0x3e1250(0x2c0,0x2bd)+owner)),console[_0x3e1250(0x2d3,0x2a8)](color(_0x3e1250(0x2ae,0x2e2),_0x3e1250(0x2b2,0x2c6)),color('\x0aSilakan\x20Ketik\x20#public\x20Di\x20WhatsApp\x20Yang\x20Habis\x20Di\x20Buat\x20Scan\x20!!')),_0x570a24['on']('qr',()=>{function _0x55580e(_0x290863,_0x1d95b3){return _0x3e1250(_0x1d95b3,_0x290863- -0x1ab);}console['log'](color('[',_0x55580e(0x11b,0x11e)),color('!',_0x55580e(0x149,0x13c)),color(']','white'),color(_0x55580e(0x138,0x162)));});const _0x3b3eab=async(_0x3eb6af,_0x31a5fd,_0x30d63f,_0x1ba467,_0x3faaec)=>{gam=_0x1ba467,jadinya=await _0x570a24[_0x4aa859(-0x1d2,-0x1cf)](_0x3eb6af,gam,MessageType['image']),buttonMessagesI={'imageMessage':jadinya[_0x4aa859(-0x184,-0x151)]['imageMessage'],'contentText':_0x31a5fd,'footerText':_0x30d63f,'buttons':_0x3faaec,'headerType':0x4};function _0x4aa859(_0x39fdd0,_0x294c44){return _0x3e1250(_0x294c44,_0x39fdd0- -0x46d);}_0x570a24['sendMessage'](_0x3eb6af,buttonMessagesI,MessageType[_0x4aa859(-0x1b1,-0x18d)]);};function _0x3e1250(_0x2b2700,_0x3a7472){return _0x3c1b2b(_0x2b2700,_0x3a7472-0x469);}fs[_0x3e1250(0x2a5,0x2c5)](_0x3e1250(0x2a4,0x2a0))&&_0x570a24[_0x3e1250(0x2b3,0x29f)](_0x3e1250(0x2d9,0x2a0)),_0x570a24['on'](_0x3e1250(0x2ef,0x2c0),()=>{function _0x3d8bc7(_0x456d61,_0x1137b1){return _0x3e1250(_0x456d61,_0x1137b1- -0x3e3);}start('2',_0x3d8bc7(-0x129,-0x132));}),_0x570a24['on'](_0x3e1250(0x2de,0x2ee),()=>{function _0x5c58d3(_0x4bf01e,_0x5a6a32){return _0x3e1250(_0x4bf01e,_0x5a6a32- -0x45f);}success('2',_0x5c58d3(-0x1ed,-0x1d3));}),await _0x570a24[_0x3e1250(0x2ea,0x2d4)]({'timeoutMs':0x1e*0x3e8}),fs[_0x3e1250(0x272,0x2a7)](_0x3e1250(0x269,0x2a0),JSON[_0x3e1250(0x2ae,0x298)](_0x570a24[_0x3e1250(0x27d,0x28f)](),null,'\x09')),_0x570a24['on'](_0x3e1250(0x28a,0x2ad),async _0x1b41f6=>{require('./Dhani.js')(_0x570a24,_0x1b41f6,_welkom);}),_0x570a24['on']('group-participants-update',async _0x2bcfde=>{const _0x231843=_welkom[_0x2d6900(0xe,0x4)](_0x2bcfde['jid']);function _0x2d6900(_0x5c4a78,_0x11bf33){return _0x3e1250(_0x11bf33,_0x5c4a78- -0x27d);}try{groupMet=await _0x570a24[_0x2d6900(0x68,0x83)](_0x2bcfde['jid']),groupMembers=groupMet[_0x2d6900(0x1d,0x53)],groupAdmins=getGroupAdmins(groupMembers),mem=_0x2bcfde[_0x2d6900(0x1d,0x56)][0x0],console['log'](_0x2bcfde);try{pp_user=await _0x570a24[_0x2d6900(0x36,0x1)](mem);}catch(_0x4d1773){pp_user=_0x2d6900(0x69,0x63);}try{pp_grup=await _0x570a24[_0x2d6900(0x36,0x11)](_0x2bcfde[_0x2d6900(0x24,0x2a)]);}catch(_0x5a362a){pp_grup=_0x2d6900(0x69,0x80);}hehe=await getBuffer(pp_user);if(_0x2bcfde[_0x2d6900(0x2e,0x3e)]==_0x2d6900(0x5e,0x55)&&!mem[_0x2d6900(0xe,0x36)](_0x570a24[_0x2d6900(0x2f,0x8)][_0x2d6900(0x24,0x17)])){const _0x5bbc06=await _0x570a24[_0x2d6900(0x68,0x3d)](_0x2bcfde[_0x2d6900(0x24,0xa)]),_0x2332c4=_0x5bbc06[_0x2d6900(0x1d,0xb)][_0x2d6900(0x5d,0x72)],_0x350df2=await _0x570a24[_0x2d6900(0x19,-0x17)](_0x2bcfde[_0x2d6900(0x1d,0xc)][0x0],MessageType[_0x2d6900(0x38,0x32)]),_0x1bd3d1=_0x2bcfde[_0x2d6900(0x1d,-0x9)][0x0],_0x34e413=await _0x570a24['prepareMessage']('0@s.whatsapp.net',hehe,MessageType['location'],{'thumbnail':hehe}),_0x258e6a=_0x34e413[_0x2d6900(0x6c,0x4a)][_0x2d6900(0x17,-0x18)]?_0x34e413[_0x2d6900(0x6c,0x96)][_0x2d6900(0x17,-0x20)]:_0x34e413;let _0x56d3a3=_0x570a24[_0x2d6900(0x3d,0x23)][_0x1bd3d1]||{'notify':_0x1bd3d1[_0x2d6900(0x44,0x7c)](/@.+/,'')};anu_user=_0x56d3a3[_0x2d6900(0x4e,0x78)]||_0x56d3a3[_0x2d6900(0x56,0x77)]||_0x1bd3d1[_0x2d6900(0x29,-0x3)]('@')[0x0],time_welc=moment['tz'](_0x2d6900(0x63,0x40))[_0x2d6900(0x76,0x44)](_0x2d6900(0x1a,-0x3)),time_wel=moment['tz']('Asia/Kolkata')[_0x2d6900(0x76,0x96)](_0x2d6900(0x79,0x48)),teks=_0x2d6900(0x6d,0x54)+_0x1bd3d1[_0x2d6900(0x29,0x2a)]('@')[0x0]+'\x0aเฟโโก\x20แดกแดสแดแดแดแด\x20แดแด\x20ษขแด\x20*'+_0x5bbc06['subject']+_0x2d6900(0x21,0x1d)+_0x350df2[_0x2d6900(0x6e,0x56)]+_0x2d6900(0x7e,0x7a)+_0x2332c4+_0x2d6900(0x78,0x74)+_0x5bbc06[_0x2d6900(0x59,0x8f)],welcomeBut=[{'buttonId':prefix+_0x2d6900(0x53,0x8d),'buttonText':{'displayText':_0x2d6900(0x11,-0x6)},'type':0x1},{'buttonId':prefix+_0x2d6900(0x2c,0xf),'buttonText':{'displayText':_0x2d6900(0x6b,0x34)},'type':0x1}],welcomeButt={'contentText':''+teks,'footerText':_0x2d6900(0x41,0x4a),'buttons':welcomeBut,'headerType':0x6,'locationMessage':_0x258e6a['message'][_0x2d6900(0x6f,0x42)]},_0x570a24[_0x2d6900(0x5b,0x41)](_0x5bbc06['id'],welcomeButt,MessageType[_0x2d6900(0x3f,0x44)],{'caption':'hehe','contextInfo':{'mentionedJid':[_0x1bd3d1]}});}if(_0x2bcfde['action']==_0x2d6900(0x1f,0x1a)&&!mem[_0x2d6900(0xe,0x9)](_0x570a24['user'][_0x2d6900(0x24,0x1e)])){const _0x2baf0a=await _0x570a24[_0x2d6900(0x68,0x80)](_0x2bcfde['jid']),_0x4e8b93=_0x2bcfde[_0x2d6900(0x1d,0x29)][0x0],_0x5208d8=await _0x570a24['prepareMessage'](_0x2d6900(0x14,0x34),hehe,MessageType['location'],{'thumbnail':hehe}),_0x346199=_0x5208d8['message'][_0x2d6900(0x17,0x24)]?_0x5208d8[_0x2d6900(0x6c,0x83)]['ephemeralMessage']:_0x5208d8;let _0x967963=_0x570a24[_0x2d6900(0x3d,0x65)][_0x4e8b93]||{'notify':_0x4e8b93['replace'](/@.+/,'')};anu_user=_0x967963[_0x2d6900(0x4e,0x85)]||_0x967963['notify']||_0x4e8b93['split']('@')[0x0],time_welc=moment['tz']('Asia/Kolkata')['format']('DD/MM/YYYY'),time_wel=moment['tz'](_0x2d6900(0x63,0x36))[_0x2d6900(0x76,0x7b)](_0x2d6900(0x79,0x45)),memeg=_0x2baf0a[_0x2d6900(0x1d,-0x18)][_0x2d6900(0x5d,0x28)],out='sแดสแดแดแดแด\x20แดษชษดษขษขแดส\x20แดแดแด\x20@'+_0x4e8b93[_0x2d6900(0x29,0x37)]('@')[0x0]+_0x2d6900(0x42,0x11),goodbyeBut=[{'buttonId':prefix+'menu','buttonText':{'displayText':'แดแดษดแด'},'type':0x1},{'buttonId':prefix+_0x2d6900(0x2c,0x3d),'buttonText':{'displayText':_0x2d6900(0x6b,0x79)},'type':0x1}],goodbyeButt={'contentText':''+out,'footerText':_0x2d6900(0x64,0x2b),'buttons':goodbyeBut,'headerType':0x6,'locationMessage':_0x5208d8[_0x2d6900(0x6c,0x70)]['locationMessage']},_0x570a24[_0x2d6900(0x5b,0x4c)](_0x2baf0a['id'],goodbyeButt,MessageType['buttonsMessage'],{'caption':_0x2d6900(0x47,0x69),'contextInfo':{'mentionedJid':[_0x4e8b93]}});}if(_0x2bcfde[_0x2d6900(0x2e,0x3f)]==_0x2d6900(0x50,0x48)){const _0x206ef6=await _0x570a24[_0x2d6900(0x68,0x88)](_0x2bcfde[_0x2d6900(0x24,0xd)]);num=_0x2bcfde[_0x2d6900(0x1d,0x30)][0x0];try{ppimg=await _0x570a24[_0x2d6900(0x36,0x69)](_0x2bcfde['participants'][0x0][_0x2d6900(0x29,0x58)]('@')[0x0]+_0x2d6900(0x37,0x34));}catch{ppimg='https://i0.wp.com/www.gambarunik.id/wp-content/uploads/2019/06/Top-Gambar-Foto-Profil-Kosong-Lucu-Tergokil-.jpg';}let _0x1ea827=await getBuffer(ppimg);teks=_0x2d6900(0x46,0x13)+num[_0x2d6900(0x44,0x3a)](_0x2d6900(0x16,0x7),'')+'\x0a```User\x20:```\x20@'+num[_0x2d6900(0x29,0x53)]('@')[0x0]+_0x2d6900(0x80,0x74)+_0x206ef6[_0x2d6900(0x33,0x53)]+'\x0a\x0a๐๐๐ก๐๐ข๐๐ฉ\x20๐๐๐ ๐๐ \x20๐๐๐ก๐๐\x20๐
๐๐๐\x20๐ผ๐๐ข๐๐ฃ\x20๐',_0x570a24[_0x2d6900(0x5b,0x45)](_0x206ef6['id'],_0x1ea827,MessageType[_0x2d6900(0x70,0x83)],{'caption':teks,'contextInfo':{'mentionedJid':[num]},'quoted':{'key':{'participant':'0','remoteJid':_0x2d6900(0x6a,0x88),'fromMe':![],'id':'B391837A58338BA8186C47E51FFDFD4A'},'message':{'documentMessage':{'jpegThumbnail':_0x1ea827,'mimetype':_0x2d6900(0x7a,0x5d),'title':_0x2d6900(0x5a,0x78),'fileLength':'36','pageCount':0x0,'fileName':'_Welcome_'}},'messageTimestamp':'1614069378','status':_0x2d6900(0x4a,0x32)}});}if(_0x2bcfde[_0x2d6900(0x2e,0x55)]==_0x2d6900(0x45,0x40)){num=_0x2bcfde[_0x2d6900(0x1d,0x41)][0x0];const _0x1dacff=await _0x570a24[_0x2d6900(0x68,0x99)](_0x2bcfde[_0x2d6900(0x24,-0x16)]);try{ppimg=await _0x570a24[_0x2d6900(0x36,0x34)](_0x2bcfde['participants'][0x0]['split']('@')[0x0]+_0x2d6900(0x37,0x60));}catch{ppimg=_0x2d6900(0x3b,0x2d);}let _0x2cef62=await getBuffer(ppimg);teks=_0x2d6900(0x25,0x40)+num[_0x2d6900(0x44,0x19)]('@s.whatsapp.net','')+_0x2d6900(0x31,0x50)+num['split']('@')[0x0]+_0x2d6900(0x80,0x82)+_0x1dacff[_0x2d6900(0x33,0x3b)]+_0x2d6900(0x39,0x8),_0x570a24[_0x2d6900(0x5b,0x50)](_0x1dacff['id'],teks,MessageType['text'],{'contextInfo':{'mentionedJid':[num]},'quoted':{'key':{'participant':'0','remoteJid':'Ktl','fromMe':![],'id':'B391837A58338BA8186C47E51FFDFD4A'},'message':{'documentMessage':{'jpegThumbnail':_0x2cef62,'mimetype':_0x2d6900(0x7a,0x4c),'title':_0x2d6900(0x3e,0x66),'fileLength':'36','pageCount':0x0,'fileName':'_Welcome_'}},'messageTimestamp':_0x2d6900(0x7c,0x43),'status':'PENDING'}});}}catch(_0x57457c){console[_0x2d6900(0x2b,0x4)](_0x2d6900(0x55,0x68),color(_0x57457c,'red'));}});};function _0x403f(){const _0x5c168f=['ษชษดาแด\x20ษขสแดแด','message','\x0aโโฆโฆโฆโโฆโโโโฆโโฆโโโฆโโ\x0aโโโโโฉโฃโโฃโโฃโโโโโโฉโฃ\x0aโโโโฉโโฉโโฉโโฉโโฉโฉโฉโฉโโ\x0a\x0aเฟโโก\x20สแดษช\x20แดแดแด\x20@','status','locationMessage','image','open','3890520ilFLlG','readFileSync','logger','moment-timezone','format','red','*\x0aเฟโโก\x20แด
แดsแดสษชแดsษช\x20ษขสแดแด\x20:\x0a\x0a','hh:mm','application/octet-stream','sekarang\x20sedang\x20diawasi\x20untuk\x20perubahan','1614069378','watchFile','*\x0aเฟโโก\x20แดแดแดแดส\x20แดแดแดสแดส\x20:\x20*','Module','\x0a```Group\x20:```\x20','@adiwajshing/baileys','includes','Done\x20Terhubung\x20!!','-\x20INFO\x20ANDA\x20:','แดแดษดแด','base64EncodedAuthInfo','BotName','0@s.whatsapp.net','OwnerNumber','@s.whatsapp.net','ephemeralMessage','./lib/color','getStatus','DD/MM/YYYY','stringify','265340EbSMWe','participants','prepareMessage','remove','\x0aโข\x20Nama\x20Owner\x20:\x20','*\x0aเฟโโก\x20สษชแด\x20:\x20*','loadAuthInfo','./DhaniGans.json','jid','๐ฟ๐๐๐๐๐\x20๐ฟ๐๐๐๐พ๐\x0a\x09\x09\x09\x0a```Nomor\x20:```\x20wa.me/','372126tRbtmp','\x20telah\x20di\x20update!','OwnerName','split','writeFileSync','log','infogrup','8ToCkpa','action','user','chat-update','\x0a```User\x20:```\x20@','parse','subject','Loading...','558355jOZmVO','getProfilePicture','@c.us','text','\x0a\x0a๐๐...\x20๐๐๐ ๐๐ \x20๐
๐๐๐\x20๐๐๐ข๐๐๐ง\x20๐\x0a๐๐๐จ๐๐๐๐ฃ\x20๐
๐ช๐๐\x20๐๐\x20๐','./database/welcome.json','https://i0.wp.com/www.gambarunik.id/wp-content/uploads/2019/06/Top-Gambar-Foto-Profil-Kosong-Lucu-Tergokil-.jpg','4mxLvNq','contacts','DEMOTE','buttonsMessage','\x0aโข\x20Nomor\x20Owner\x20:\x20','๐
\x20๐ค\x20๐\x20๐ฃ\x20๐\x20๐\x20๐จ\x20๐จ\x20๐\x20๐\x20๐','\x0asแดแดแดษขแด\x20แดแดษดแดษดษข\x20แด
ษชsแดษดแด','connecting','replace','demote','๐๐๐๐๐๐๐\x20๐ฟ๐๐๐๐พ๐\x0a\x09\x09\x09\x0a```Nomor\x20:```\x20wa.me/','hehe','existsSync','white','PENDING','./Dhani.js','Chrome','DhaniGans','vname','\x0aโข\x20Nama\x20Bot\x20:\x20','promote','3081861CgLPEB','browserDescription','menu','warn','Error\x20:\x20%s','notify','connect','-\x20NOTE\x20:','desc','PROMOTE','sendMessage','๏ธ\x0aIni\x20Sc\x20Gw\x20Susun\x20Sendiri\x0aJangan\x20Jual\x20Sc\x20Ini\x20!!\x0aJangan\x20Lupa\x20Subscribe\x20Channel\x20:\x20Bot\x20Dhani\x20?\x0aCredit\x20By\x20:\x20DhaniGans','length','add','level','3994008lKmMKj','6ZAohMS','1369035xbchuE','Asia/Kolkata','๐\x20๐\x20๐\x20๐ซ\x20๐\x20๐\x20๐\x20๐จ\x20๐จ\x20๐\x20๐\x20๐','-\x20INFO\x20:','Scan\x20Qrnya\x20Waktu\x20Cuma\x2020\x20Detik\x20!!','resolve','groupMetadata','https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_960_720.png?q=60','Kntl'];_0x403f=function(){return _0x5c168f;};return _0x403f();}function nocache(_0x4e1991,_0x5dffef=()=>{}){function _0x5c7c9c(_0x133aae,_0x56112e){return _0x3c1b2b(_0x133aae,_0x56112e-0x25d);}console['log'](_0x5c7c9c(0xf1,0xf0),'\x27'+_0x4e1991+'\x27',_0x5c7c9c(0xec,0xec)),fs[_0x5c7c9c(0xe9,0xee)](require[_0x5c7c9c(0xff,0xd8)](_0x4e1991),async()=>{await uncache(require[_0xe09ea2(0x14c,0x125)](_0x4e1991));function _0xe09ea2(_0x1bbab8,_0x4c268f){return _0x5c7c9c(_0x1bbab8,_0x4c268f-0x4d);}_0x5dffef(_0x4e1991);});}function uncache(_0x3e16e9='.'){return new Promise((_0x1a05db,_0x3adfd0)=>{function _0xb3026a(_0x2d76fd,_0x3fe349){return _0x1522(_0x2d76fd- -0x187,_0x3fe349);}try{delete require['cache'][require[_0xb3026a(-0x5b,-0x6d)](_0x3e16e9)],_0x1a05db();}catch(_0x4f0bb9){_0x3adfd0(_0x4f0bb9);}});}starts();