forked from AmeenRepo/KEIKO-V5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
handler.js
1 lines (1 loc) · 29.5 KB
/
handler.js
1
const _0x7f07b7=_0x33c5;(function(_0x2fba56,_0x56738e){const _0x21e874=_0x33c5,_0x5eecd6=_0x2fba56();while(!![]){try{const _0x22a5a8=-parseInt(_0x21e874(0x151))/0x1+parseInt(_0x21e874(0xd8))/0x2+-parseInt(_0x21e874(0xc5))/0x3*(parseInt(_0x21e874(0x105))/0x4)+parseInt(_0x21e874(0xe4))/0x5+-parseInt(_0x21e874(0xeb))/0x6+parseInt(_0x21e874(0x17b))/0x7+-parseInt(_0x21e874(0xa1))/0x8*(-parseInt(_0x21e874(0x114))/0x9);if(_0x22a5a8===_0x56738e)break;else _0x5eecd6['push'](_0x5eecd6['shift']());}catch(_0x25a61f){_0x5eecd6['push'](_0x5eecd6['shift']());}}}(_0x2310,0x95c38));import{smsg}from'./lib/simple.js';import{format}from'util';import{fileURLToPath}from'url';import _0x48359f,{join}from'path';function _0x2310(){const _0x85e4c4=['pollUpdates','reloadHandler','composing','expired','error','role','nsfw','status@broadcast','function','self','\x20Description\x20Has\x20Been\x20Changed\x20To*\x0a@desc','sIcon','\x20This\x20Command\x20Can\x20Only\x20Be\x20Used\x20By\x20The\x20*Bot\x20Owner*!','welcome','chats','quoted','\x20@user\x20*is\x20now\x20admin*','\x20Has\x20Stopped\x20Being\x20Afk\x20And\x20Is\x20Currently\x20Typing.\x0a\x0aReason:\x20','readMessages','demote','moderator','owner','includes','\x20Moderator\x27s\x20Query*\x0a\x0a\x20\x20\x20\x20','vote','name','1126209TUGLdF','isGroup','dfail','@user','\x20This\x20feature\x20is\x20*disabled*!','success','fail','registered','sRestrictOff','restrict','detect','after','splice','8KBnLwb','useDocument','text','antiSticker','string','@s.whatsapp.net','settings','*乂\x20You\x20don\x27t\x20have\x20enough\x20gold*','slice','antiDelete','customPrefix','data','credit','sDemote','\x0a\x0a${format(e)}','rowner','viewOnce','remoteJid','users','loadMessage','stats','admin','promote','nyimak','plugins','mods','metadata','.18*!','\x0a*❖\x20Chat:*\x20','\x20This\x20Command\x20Can\x20Only\x20Be\x20Used\x20In\x20*Private\x20Chats*!','tags','restrictOn','🎟️','env','key','serializeM','3EeOVdV','\x20Bot\x20Admin\x27s\x20Query*\x0a\x0a\x20\x20\x20\x20','sWelcome','chicken','isBanned','object','\x20NSFW\x20Is\x20Not\x20Active.\x20Please\x20Contact\x20The\x20Group\x20Admin\x20To\x20Enable\x20This\x20Feature!','MODE','child','keys','sSubject','announceOff','warn','sDesc','prems','isInit','\x0a*❖\x20Sender:*\x20','presences','desc','263382VooCAi','jid','sAnnounceOff','onWhatsApp','\x20Icon\x20Has\x20Been\x20Changed*','before','@icon','test','antidelete','sPromote','\x20Admin\x27s\x20Query*\x0a\x0a\x20\x20\x20\x20','decodeJid','2860685wRWYDy','filter','isArray','sRevoke','command','replace','user','6762876QnRPYJ','lastKnownPresence','swonly','banned','fromMe','🛡️','sender','*Level\x20required\x20','unreg','chat','map','plugin','group','👋🏻','sAnnounceOn','\x20Subject\x20Has\x20Been\x20Changed\x20To*\x0a@subject','undefined','some','queque','*,\x20','status','message','\x20Make\x20The\x20Bot\x20An\x20*Admin*\x20To\x20Use\x20This\x20Command!','trim','gconly','level','2936432dtWHqe','announceOn','prefix','last','\x20Group\x20Query*\x0a\x0a\x20\x20\x20\x20','regTime','toLowerCase','APIKeys','afk','simi','sBye','#HIDDEN#','*❖\x20Plugin:*\x20','subject','./lib/print.js','21498174lOLamJ','redBright','sendMessage','\x20Private\x20Query*\x0a\x0a\x20\x20\x20\x20','messages','values','msgqueque','spromote','reply','icon','antiToxic','push','\x20Group\x20Is\x20Now\x20Restricted\x20To\x20Participants\x20Only!*','g.us','store','sRestrictOn','botAdmin','autolevelup','User\x20Banned\x20Afk','owner-unbanchat.js','pushMessage','sdemote','\x20to\x20use\x20this\x20command.*\x20\x0a*Your\x20level\x20','\x20Group\x20Is\x20Now\x20Restricted\x20To\x20Admins\x20Only!*','announce','\x20This\x20Command\x20Can\x20Only\x20Be\x20Used\x20In\x20*Group\x20Chats*!','cheater','owner-unbanuser.js','length','afkReason','exec','participants','call','parseMention','bank','find','groupMetadata','indexOf','\x20Please\x20Register\x20To\x20Use\x20This\x20Feature\x20By\x20Typing:\x0a\x0a*#register\x20name.age*\x0a\x0aExample:\x20*#register\x20','catch','ceil','Update\x20handler.js','./plugins','conn','revoke','\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20└─────────────\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','copyNForward','\x20NSFW\x20Query*\x0a\x0a\x20\x20\x20\x20','\x20This\x20Command\x20Is\x20Only\x20For\x20*Premium\x20Members*!','log','all','join','exp','endsWith','lastSuccess','exists','@whiskeysockets/baileys','url','\x20Group\x20Is\x20Now\x20Closed!*','\x20This\x20Command\x20Is\x20Only\x20For\x20*Group\x20Admins*!','total','778715TanKfr','fatal','number','premium','No\x20Reason','getmsg','\x20Owner\x27s\x20Query*\x0a\x0a\x20\x20\x20\x20','\x20Premium\x20Query*\x0a\x0a\x20\x20\x20\x20','disabled','toTimeString','\x20Group\x20Is\x20Now\x20Open!*','private','lastclaim','default','split','register'];_0x2310=function(){return _0x85e4c4;};return _0x2310();}import{unwatchFile,watchFile}from'fs';import _0x48b56d from'chalk';import _0x15885d from'node-fetch';import _0x5c0e46 from'pino';const isNumber=_0x19f1c2=>typeof _0x19f1c2===_0x7f07b7(0x153)&&!isNaN(_0x19f1c2),delay=_0x1c7445=>isNumber(_0x1c7445)&&new Promise(_0x31db56=>setTimeout(function(){clearTimeout(this),_0x31db56();},_0x1c7445)),{getAggregateVotesInPollMessage,makeInMemoryStore}=await(await import(_0x7f07b7(0x14c)))['default'],store=makeInMemoryStore({'logger':_0x5c0e46()[_0x7f07b7(0xcd)]({'level':_0x7f07b7(0x152),'stream':_0x7f07b7(0x122)})});export async function handler(_0x20797f){const _0x500e96=_0x7f07b7;this[_0x500e96(0x11a)]=this[_0x500e96(0x11a)]||[];if(!_0x20797f)return;this[_0x500e96(0x128)](_0x20797f['messages'])[_0x500e96(0x13b)](console['error']);let _0x4f62ef=_0x20797f[_0x500e96(0x118)][_0x20797f['messages'][_0x500e96(0x130)]-0x1];if(!_0x4f62ef)return;if(global['db'][_0x500e96(0xac)]==null)await global['loadDatabase']();try{_0x4f62ef=smsg(this,_0x4f62ef)||_0x4f62ef;if(!_0x4f62ef)return;_0x4f62ef['exp']=0x0,_0x4f62ef['credit']=![],_0x4f62ef[_0x500e96(0x136)]=![],_0x4f62ef[_0x500e96(0xc8)]=![];try{let _0xc1de49=global['db']['data'][_0x500e96(0xb3)][_0x4f62ef['sender']];if(typeof _0xc1de49!=='object')global['db'][_0x500e96(0xac)][_0x500e96(0xb3)][_0x4f62ef['sender']]={};if(_0xc1de49){if(!isNumber(_0xc1de49[_0x500e96(0x148)]))_0xc1de49[_0x500e96(0x148)]=0x0;if(!isNumber(_0xc1de49[_0x500e96(0xad)]))_0xc1de49[_0x500e96(0xad)]=0xa;if(!isNumber(_0xc1de49[_0x500e96(0x136)]))_0xc1de49[_0x500e96(0x136)]=0x0;if(!isNumber(_0xc1de49['chicken']))_0xc1de49[_0x500e96(0xc8)]=0x0;if(!isNumber(_0xc1de49['lastclaim']))_0xc1de49[_0x500e96(0x15d)]=0x0;if(!('registered'in _0xc1de49))_0xc1de49[_0x500e96(0x182)]=![];if(!_0xc1de49[_0x500e96(0x182)]){if(!(_0x500e96(0x17a)in _0xc1de49))_0xc1de49[_0x500e96(0x17a)]=_0x4f62ef['name'];if(!isNumber(_0xc1de49['age']))_0xc1de49['age']=-0x1;if(!isNumber(_0xc1de49[_0x500e96(0x10a)]))_0xc1de49[_0x500e96(0x10a)]=-0x1;}if(!isNumber(_0xc1de49['afk']))_0xc1de49['afk']=-0x1;if(!(_0x500e96(0x131)in _0xc1de49))_0xc1de49[_0x500e96(0x131)]='';if(!(_0x500e96(0xee)in _0xc1de49))_0xc1de49[_0x500e96(0xee)]=![];if(!isNumber(_0xc1de49[_0x500e96(0xd1)]))_0xc1de49['warn']=0x0;if(!isNumber(_0xc1de49[_0x500e96(0x104)]))_0xc1de49[_0x500e96(0x104)]=0x0;if(!(_0x500e96(0x166)in _0xc1de49))_0xc1de49[_0x500e96(0x166)]='Tadpole';if(!(_0x500e96(0x125)in _0xc1de49))_0xc1de49[_0x500e96(0x125)]=![];}else global['db']['data'][_0x500e96(0xb3)][_0x4f62ef['sender']]={'exp':0x0,'credit':0x0,'bank':0x0,'chicken':0x0,'lastclaim':0x0,'registered':![],'name':_0x4f62ef['name'],'age':-0x1,'regTime':-0x1,'afk':-0x1,'afkReason':'','banned':![],'warn':0x0,'level':0x0,'role':'Tadpole','autolevelup':![]};let _0x1fa0b8=global['db'][_0x500e96(0xac)][_0x500e96(0x16f)][_0x4f62ef[_0x500e96(0xf4)]];if(typeof _0x1fa0b8!==_0x500e96(0xca))global['db'][_0x500e96(0xac)][_0x500e96(0x16f)][_0x4f62ef[_0x500e96(0xf4)]]={};if(_0x1fa0b8){if(!(_0x500e96(0xaa)in _0x1fa0b8))_0x1fa0b8[_0x500e96(0xaa)]=!![];if(!('antiLink'in _0x1fa0b8))_0x1fa0b8['antiLink']=![];if(!('antiSticker'in _0x1fa0b8))_0x1fa0b8[_0x500e96(0xa4)]=![];if(!(_0x500e96(0x11e)in _0x1fa0b8))_0x1fa0b8['antiToxic']=![];if(!(_0x500e96(0x185)in _0x1fa0b8))_0x1fa0b8['detect']=![];if(!(_0x500e96(0x156)in _0x1fa0b8))_0x1fa0b8[_0x500e96(0x156)]=!![];if(!(_0x500e96(0xc9)in _0x1fa0b8))_0x1fa0b8['isBanned']=![];if(!(_0x500e96(0x167)in _0x1fa0b8))_0x1fa0b8[_0x500e96(0x167)]=![];if(!(_0x500e96(0x10f)in _0x1fa0b8))_0x1fa0b8['sBye']='';if(!(_0x500e96(0xae)in _0x1fa0b8))_0x1fa0b8[_0x500e96(0xae)]='';if(!(_0x500e96(0x10e)in _0x1fa0b8))_0x1fa0b8[_0x500e96(0x10e)]=![];if(!(_0x500e96(0xe1)in _0x1fa0b8))_0x1fa0b8[_0x500e96(0xe1)]='';if(!(_0x500e96(0xc7)in _0x1fa0b8))_0x1fa0b8['sWelcome']='';if(!(_0x500e96(0xa2)in _0x1fa0b8))_0x1fa0b8[_0x500e96(0xa2)]=![];if(!('viewOnce'in _0x1fa0b8))_0x1fa0b8[_0x500e96(0xb1)]=![];if(!('viewStory'in _0x1fa0b8))_0x1fa0b8['viewStory']=![];if(!('welcome'in _0x1fa0b8))_0x1fa0b8[_0x500e96(0x16e)]=![];if(!('chatbot'in _0x1fa0b8))_0x1fa0b8['chatbot']=![];if(!isNumber(_0x1fa0b8[_0x500e96(0x164)]))_0x1fa0b8[_0x500e96(0x164)]=0x0;}else global['db'][_0x500e96(0xac)][_0x500e96(0x16f)][_0x4f62ef[_0x500e96(0xf4)]]={'antiDelete':!![],'antiLink':![],'antiSticker':![],'antiToxic':![],'detect':![],'expired':0x0,'getmsg':!![],'isBanned':![],'nsfw':![],'sBye':'','sDemote':'','simi':![],'sPromote':'','sticker':![],'sWelcome':'','useDocument':![],'viewOnce':![],'viewStory':![],'welcome':![],'chatbot':![]};let _0x5a831a=global['db'][_0x500e96(0xac)]['settings'][this[_0x500e96(0xea)]['jid']];if(typeof _0x5a831a!=='object')global['db'][_0x500e96(0xac)][_0x500e96(0xa7)][this[_0x500e96(0xea)]['jid']]={};if(_0x5a831a){if(!(_0x500e96(0x16a)in _0x5a831a))_0x5a831a[_0x500e96(0x16a)]=![];if(!(_0x500e96(0x184)in _0x5a831a))_0x5a831a[_0x500e96(0x184)]=![];if(!('restartDB'in _0x5a831a))_0x5a831a['restartDB']=0x0;if(!(_0x500e96(0xff)in _0x5a831a))_0x5a831a[_0x500e96(0xff)]=0x0;}else global['db'][_0x500e96(0xac)][_0x500e96(0xa7)][this[_0x500e96(0xea)][_0x500e96(0xd9)]]={'self':![],'restrict':![],'restartDB':0x0,'status':0x0};}catch(_0x4b35b4){console[_0x500e96(0x165)](_0x4b35b4);}if(opts[_0x500e96(0xb8)])return;if(opts['pconly']&&_0x4f62ef[_0x500e96(0xf4)][_0x500e96(0x149)]('g.us'))return;if(opts[_0x500e96(0x103)]&&!_0x4f62ef[_0x500e96(0xf4)][_0x500e96(0x149)](_0x500e96(0x121)))return;if(opts[_0x500e96(0xed)]&&_0x4f62ef[_0x500e96(0xf4)]!==_0x500e96(0x168))return;if(typeof _0x4f62ef[_0x500e96(0xa3)]!==_0x500e96(0xa5))_0x4f62ef[_0x500e96(0xa3)]='';const _0x51e057=[conn[_0x500e96(0xe3)](global[_0x500e96(0x13f)][_0x500e96(0xea)]['id']),...global[_0x500e96(0x176)][_0x500e96(0xf5)](([_0x455525])=>_0x455525)][_0x500e96(0xf5)](_0x35b5f7=>_0x35b5f7[_0x500e96(0xe9)](/[^0-9]/g,'')+_0x500e96(0xa6))['includes'](_0x4f62ef[_0x500e96(0xf1)]),_0x2013ee=_0x51e057||_0x4f62ef[_0x500e96(0xef)],_0x8a5a05=_0x2013ee||global[_0x500e96(0xba)]['map'](_0x15eec6=>_0x15eec6['replace'](/[^0-9]/g,'')+_0x500e96(0xa6))[_0x500e96(0x177)](_0x4f62ef[_0x500e96(0xf1)]),_0x2dae28=_0x51e057||global[_0x500e96(0xd3)][_0x500e96(0xf5)](_0x23eb71=>_0x23eb71[_0x500e96(0xe9)](/[^0-9]/g,'')+_0x500e96(0xa6))[_0x500e96(0x177)](_0x4f62ef[_0x500e96(0xf1)]);if(opts[_0x500e96(0xfd)]&&_0x4f62ef[_0x500e96(0xa3)]&&!(_0x8a5a05||_0x2dae28)){let _0x35cf9d=this['msgqueque'],_0x589dda=0x3e8*0x5;const _0x29f585=_0x35cf9d[_0x35cf9d[_0x500e96(0x130)]-0x1];_0x35cf9d[_0x500e96(0x11f)](_0x4f62ef['id']||_0x4f62ef[_0x500e96(0xc3)]['id']),setInterval(async function(){const _0x121367=_0x500e96;if(_0x35cf9d[_0x121367(0x139)](_0x29f585)===-0x1)clearInterval(this);await delay(_0x589dda);},_0x589dda);}if(process[_0x500e96(0xc2)][_0x500e96(0xcc)]&&process[_0x500e96(0xc2)][_0x500e96(0xcc)][_0x500e96(0x10b)]()===_0x500e96(0x15c)&&!(_0x51e057||_0x2013ee))return;if(_0x4f62ef['isBaileys'])return;_0x4f62ef[_0x500e96(0x148)]+=Math[_0x500e96(0x13c)](Math['random']()*0xa);let _0x1c1f0d,_0x42d668=global['db'][_0x500e96(0xac)]&&global['db'][_0x500e96(0xac)][_0x500e96(0xb3)]&&global['db'][_0x500e96(0xac)][_0x500e96(0xb3)][_0x4f62ef[_0x500e96(0xf1)]];const _0x57762f=(_0x4f62ef['isGroup']?(conn[_0x500e96(0x16f)][_0x4f62ef['chat']]||{})[_0x500e96(0xbb)]||await this[_0x500e96(0x138)](_0x4f62ef[_0x500e96(0xf4)])['catch'](_0x3644d3=>null):{})||{},_0xccb525=(_0x4f62ef[_0x500e96(0x17c)]?_0x57762f[_0x500e96(0x133)]:[])||[],_0x2f2fc4=(_0x4f62ef[_0x500e96(0x17c)]?_0xccb525[_0x500e96(0x137)](_0x5a49e7=>conn[_0x500e96(0xe3)](_0x5a49e7['id'])===_0x4f62ef[_0x500e96(0xf1)]):{})||{},_0x2dd2a2=(_0x4f62ef['isGroup']?_0xccb525['find'](_0x1da3e2=>conn['decodeJid'](_0x1da3e2['id'])==conn[_0x500e96(0xea)][_0x500e96(0xd9)]):{})||{},_0x157097=_0x2f2fc4?.[_0x500e96(0xb6)]=='superadmin'||![],_0x1a1f87=_0x157097||_0x2f2fc4?.[_0x500e96(0xb6)]==_0x500e96(0xb6)||![],_0x1b419f=_0x2dd2a2?.[_0x500e96(0xb6)]||![],_0x5bbd07=_0x48359f[_0x500e96(0x147)](_0x48359f['dirname'](fileURLToPath(import.meta[_0x500e96(0x14d)])),_0x500e96(0x13e));for(let _0x544b69 in global[_0x500e96(0xb9)]){let _0x3eb71f=global[_0x500e96(0xb9)][_0x544b69];if(!_0x3eb71f)continue;if(_0x3eb71f[_0x500e96(0x159)])continue;const _0x10a895=join(_0x5bbd07,_0x544b69);if(typeof _0x3eb71f[_0x500e96(0x146)]===_0x500e96(0x169))try{await _0x3eb71f[_0x500e96(0x146)][_0x500e96(0x134)](this,_0x4f62ef,{'chatUpdate':_0x20797f,'__dirname':_0x5bbd07,'__filename':_0x10a895});}catch(_0x2c76e2){console['error'](_0x2c76e2);for(let [_0x1ee96b]of global[_0x500e96(0x176)][_0x500e96(0xe5)](([_0x3dc1f8,_0x23b3b7,_0x25d5f4])=>_0x25d5f4&&_0x3dc1f8)){let _0xe37096=(await conn[_0x500e96(0xdb)](_0x1ee96b))[0x0]||{};if(_0xe37096[_0x500e96(0x14b)])_0x4f62ef['reply']((_0x500e96(0x111)+_0x544b69+_0x500e96(0xd5)+_0x4f62ef['sender']+_0x500e96(0xbd)+_0x4f62ef[_0x500e96(0xf4)]+'\x0a*❖\x20Command:*\x20'+_0x4f62ef['text']+_0x500e96(0xaf))[_0x500e96(0x102)](),_0xe37096[_0x500e96(0xd9)]);}}if(!opts[_0x500e96(0x184)]){if(_0x3eb71f[_0x500e96(0xbf)]&&_0x3eb71f[_0x500e96(0xbf)][_0x500e96(0x177)]('admin'))continue;}const _0x44b676=_0x18fce0=>_0x18fce0[_0x500e96(0xe9)](/[|\\{}()[\]^$+*?.]/g,'\x5c$&');let _0x43172e=_0x3eb71f['customPrefix']?_0x3eb71f[_0x500e96(0xab)]:conn[_0x500e96(0x107)]?conn[_0x500e96(0x107)]:global[_0x500e96(0x107)],_0x8a8f71=(_0x43172e instanceof RegExp?[[_0x43172e['exec'](_0x4f62ef[_0x500e96(0xa3)]),_0x43172e]]:Array[_0x500e96(0xe6)](_0x43172e)?_0x43172e['map'](_0x480974=>{const _0x2da370=_0x500e96;let _0x12c18c=_0x480974 instanceof RegExp?_0x480974:new RegExp(_0x44b676(_0x480974));return[_0x12c18c[_0x2da370(0x132)](_0x4f62ef[_0x2da370(0xa3)]),_0x12c18c];}):typeof _0x43172e===_0x500e96(0xa5)?[[new RegExp(_0x44b676(_0x43172e))[_0x500e96(0x132)](_0x4f62ef[_0x500e96(0xa3)]),new RegExp(_0x44b676(_0x43172e))]]:[[[],new RegExp()]])[_0x500e96(0x137)](_0x5d7785=>_0x5d7785[0x1]);if(typeof _0x3eb71f[_0x500e96(0xdd)]==='function'){if(await _0x3eb71f[_0x500e96(0xdd)][_0x500e96(0x134)](this,_0x4f62ef,{'match':_0x8a8f71,'conn':this,'participants':_0xccb525,'groupMetadata':_0x57762f,'user':_0x2f2fc4,'bot':_0x2dd2a2,'isROwner':_0x51e057,'isOwner':_0x2013ee,'isRAdmin':_0x157097,'isAdmin':_0x1a1f87,'isBotAdmin':_0x1b419f,'isPrems':_0x2dae28,'chatUpdate':_0x20797f,'__dirname':_0x5bbd07,'__filename':_0x10a895}))continue;}if(typeof _0x3eb71f!==_0x500e96(0x169))continue;if(_0x1c1f0d=(_0x8a8f71[0x0]||'')[0x0]){let _0x1a004d=_0x4f62ef['text'][_0x500e96(0xe9)](_0x1c1f0d,''),[_0x5bcc4b,..._0x1473c4]=_0x1a004d[_0x500e96(0x102)]()[_0x500e96(0x15f)]` `[_0x500e96(0xe5)](_0x1ea8ba=>_0x1ea8ba);_0x1473c4=_0x1473c4||[];let _0x3dcd8a=_0x1a004d[_0x500e96(0x102)]()[_0x500e96(0x15f)]` `[_0x500e96(0xa9)](0x1),_0x1be440=_0x3dcd8a[_0x500e96(0x147)]` `;_0x5bcc4b=(_0x5bcc4b||'')['toLowerCase']();let _0x28e1c7=_0x3eb71f[_0x500e96(0x181)]||global['dfail'],_0x2f174f=_0x3eb71f[_0x500e96(0xe8)]instanceof RegExp?_0x3eb71f[_0x500e96(0xe8)][_0x500e96(0xdf)](_0x5bcc4b):Array[_0x500e96(0xe6)](_0x3eb71f[_0x500e96(0xe8)])?_0x3eb71f[_0x500e96(0xe8)][_0x500e96(0xfc)](_0x16cc06=>_0x16cc06 instanceof RegExp?_0x16cc06[_0x500e96(0xdf)](_0x5bcc4b):_0x16cc06===_0x5bcc4b):typeof _0x3eb71f[_0x500e96(0xe8)]===_0x500e96(0xa5)?_0x3eb71f[_0x500e96(0xe8)]===_0x5bcc4b:![];if(!_0x2f174f)continue;_0x4f62ef[_0x500e96(0xf6)]=_0x544b69;if(_0x4f62ef[_0x500e96(0xf4)]in global['db']['data'][_0x500e96(0x16f)]||_0x4f62ef['sender']in global['db'][_0x500e96(0xac)][_0x500e96(0xb3)]){let _0x259c42=global['db'][_0x500e96(0xac)]['chats'][_0x4f62ef[_0x500e96(0xf4)]],_0x1e8baf=global['db'][_0x500e96(0xac)][_0x500e96(0xb3)][_0x4f62ef[_0x500e96(0xf1)]];if(_0x544b69!=_0x500e96(0x127)&&_0x259c42?.[_0x500e96(0xc9)])return;if(_0x544b69!=_0x500e96(0x12f)&&_0x1e8baf?.[_0x500e96(0xee)])return;}if(_0x3eb71f[_0x500e96(0xb0)]&&_0x3eb71f['owner']&&!(_0x51e057||_0x2013ee)){_0x28e1c7(_0x500e96(0x176),_0x4f62ef,this);continue;}if(_0x3eb71f[_0x500e96(0xb0)]&&!_0x51e057){_0x28e1c7(_0x500e96(0xb0),_0x4f62ef,this);continue;}if(_0x3eb71f[_0x500e96(0x176)]&&!_0x2013ee){_0x28e1c7('owner',_0x4f62ef,this);continue;}if(_0x3eb71f[_0x500e96(0xba)]&&!_0x8a5a05){_0x28e1c7('mods',_0x4f62ef,this);continue;}if(_0x3eb71f['premium']&&!_0x2dae28){_0x28e1c7(_0x500e96(0x154),_0x4f62ef,this);continue;}if(_0x3eb71f[_0x500e96(0xf7)]&&!_0x4f62ef['isGroup']){_0x28e1c7(_0x500e96(0xf7),_0x4f62ef,this);continue;}else{if(_0x3eb71f['botAdmin']&&!_0x1b419f){_0x28e1c7(_0x500e96(0x124),_0x4f62ef,this);continue;}else{if(_0x3eb71f[_0x500e96(0xb6)]&&!_0x1a1f87){_0x28e1c7('admin',_0x4f62ef,this);continue;}}}if(_0x3eb71f['private']&&_0x4f62ef[_0x500e96(0x17c)]){_0x28e1c7(_0x500e96(0x15c),_0x4f62ef,this);continue;}if(_0x3eb71f[_0x500e96(0x160)]==!![]&&_0x42d668[_0x500e96(0x182)]==![]){_0x28e1c7(_0x500e96(0xf3),_0x4f62ef,this);continue;}_0x4f62ef['isCommand']=!![];let _0x21b441='exp'in _0x3eb71f?parseInt(_0x3eb71f[_0x500e96(0x148)]):0x11;if(_0x21b441>0xc8)_0x4f62ef[_0x500e96(0x11c)](_0x500e96(0x12e));else _0x4f62ef[_0x500e96(0x148)]+=_0x21b441;if(!_0x2dae28&&_0x3eb71f[_0x500e96(0xad)]&&global['db']['data'][_0x500e96(0xb3)][_0x4f62ef['sender']][_0x500e96(0xad)]<_0x3eb71f[_0x500e96(0xad)]*0x1){this['reply'](_0x4f62ef[_0x500e96(0xf4)],_0x500e96(0xa8),_0x4f62ef);continue;}if(_0x3eb71f[_0x500e96(0x104)]>_0x42d668['level']){this[_0x500e96(0x11c)](_0x4f62ef[_0x500e96(0xf4)],_0x500e96(0xf2)+_0x3eb71f[_0x500e96(0x104)]+_0x500e96(0x12a)+_0x42d668[_0x500e96(0x104)]+'*',_0x4f62ef);continue;}let _0x390ac5={'match':_0x8a8f71,'usedPrefix':_0x1c1f0d,'noPrefix':_0x1a004d,'_args':_0x3dcd8a,'args':_0x1473c4,'command':_0x5bcc4b,'text':_0x1be440,'conn':this,'participants':_0xccb525,'groupMetadata':_0x57762f,'user':_0x2f2fc4,'bot':_0x2dd2a2,'isROwner':_0x51e057,'isOwner':_0x2013ee,'isRAdmin':_0x157097,'isAdmin':_0x1a1f87,'isBotAdmin':_0x1b419f,'isPrems':_0x2dae28,'chatUpdate':_0x20797f,'__dirname':_0x5bbd07,'__filename':_0x10a895};try{await _0x3eb71f['call'](this,_0x4f62ef,_0x390ac5);if(!_0x2dae28)_0x4f62ef[_0x500e96(0xad)]=_0x4f62ef['credit']||_0x3eb71f['credit']||![];}catch(_0x146988){_0x4f62ef[_0x500e96(0x165)]=_0x146988,console['error'](_0x146988);if(_0x146988){let _0x5288ef=format(_0x146988);for(let _0x4611e1 of Object[_0x500e96(0x119)](global[_0x500e96(0x10c)]))_0x5288ef=_0x5288ef[_0x500e96(0xe9)](new RegExp(_0x4611e1,'g'),_0x500e96(0x110));if(_0x146988['name'])for(let [_0x2c352d]of global[_0x500e96(0x176)]['filter'](([_0x2644f4,_0x231c8b,_0x1cb892])=>_0x1cb892&&_0x2644f4)){let _0x174cca=(await this['onWhatsApp'](_0x2c352d))[0x0]||{};if(_0x174cca['exists'])return _0x4f62ef['reply'](('*❖\x20Plugin:*\x20'+_0x544b69+_0x500e96(0xd5)+_0x4f62ef[_0x500e96(0xf1)]+_0x500e96(0xbd)+_0x4f62ef[_0x500e96(0xf4)]+'\x0a*❖\x20Command:*\x20'+_0x1c1f0d+_0x5bcc4b+'\x20'+_0x1473c4[_0x500e96(0x147)]('\x20')+'\x0a📄\x20*Error\x20Logs:*\x0a\x0a'+_0x5288ef)[_0x500e96(0x102)](),_0x174cca[_0x500e96(0xd9)]);}_0x4f62ef[_0x500e96(0x11c)](_0x5288ef);}}finally{if(typeof _0x3eb71f[_0x500e96(0x186)]===_0x500e96(0x169))try{await _0x3eb71f[_0x500e96(0x186)][_0x500e96(0x134)](this,_0x4f62ef,_0x390ac5);}catch(_0x5c1a9f){console[_0x500e96(0x165)](_0x5c1a9f);}if(_0x4f62ef[_0x500e96(0xad)])_0x4f62ef[_0x500e96(0x11c)]('You\x20used\x20*'+ +_0x4f62ef[_0x500e96(0xad)]+'*');}break;}}}catch(_0x43b79f){console[_0x500e96(0x165)](_0x43b79f);}finally{if(opts['queque']&&_0x4f62ef[_0x500e96(0xa3)]){const _0x3b7f6d=this[_0x500e96(0x11a)][_0x500e96(0x139)](_0x4f62ef['id']||_0x4f62ef[_0x500e96(0xc3)]['id']);if(_0x3b7f6d!==-0x1)this[_0x500e96(0x11a)][_0x500e96(0xa0)](_0x3b7f6d,0x1);}let _0x4ae82b,_0xca14f7=global['db']['data'][_0x500e96(0xb5)];if(_0x4f62ef){_0x4f62ef['sender']&&(_0x4ae82b=global['db'][_0x500e96(0xac)]['users'][_0x4f62ef[_0x500e96(0xf1)]])&&(_0x4ae82b['exp']+=_0x4f62ef[_0x500e96(0x148)],_0x4ae82b[_0x500e96(0xad)]-=_0x4f62ef['credit']*0x1,_0x4ae82b['bank']-=_0x4f62ef['bank'],_0x4ae82b[_0x500e96(0xc8)]-=_0x4f62ef[_0x500e96(0xc8)]);let _0x5ea8e5;if(_0x4f62ef[_0x500e96(0xf6)]){let _0x30240f=+new Date();if(_0x4f62ef[_0x500e96(0xf6)]in _0xca14f7){_0x5ea8e5=_0xca14f7[_0x4f62ef[_0x500e96(0xf6)]];if(!isNumber(_0x5ea8e5[_0x500e96(0x150)]))_0x5ea8e5[_0x500e96(0x150)]=0x1;if(!isNumber(_0x5ea8e5[_0x500e96(0x180)]))_0x5ea8e5['success']=_0x4f62ef[_0x500e96(0x165)]!=null?0x0:0x1;if(!isNumber(_0x5ea8e5[_0x500e96(0x108)]))_0x5ea8e5[_0x500e96(0x108)]=_0x30240f;if(!isNumber(_0x5ea8e5['lastSuccess']))_0x5ea8e5[_0x500e96(0x14a)]=_0x4f62ef[_0x500e96(0x165)]!=null?0x0:_0x30240f;}else _0x5ea8e5=_0xca14f7[_0x4f62ef['plugin']]={'total':0x1,'success':_0x4f62ef[_0x500e96(0x165)]!=null?0x0:0x1,'last':_0x30240f,'lastSuccess':_0x4f62ef[_0x500e96(0x165)]!=null?0x0:_0x30240f};_0x5ea8e5['total']+=0x1,_0x5ea8e5['last']=_0x30240f,_0x4f62ef[_0x500e96(0x165)]==null&&(_0x5ea8e5[_0x500e96(0x180)]+=0x1,_0x5ea8e5[_0x500e96(0x14a)]=_0x30240f);}}try{if(!opts['noprint'])await(await import(_0x500e96(0x113)))[_0x500e96(0x15e)](_0x4f62ef,this);}catch(_0x5d1107){console['log'](_0x4f62ef,_0x4f62ef[_0x500e96(0x170)],_0x5d1107);}if(process[_0x500e96(0xc2)]['statusview']&&_0x4f62ef[_0x500e96(0xc3)][_0x500e96(0xb2)]===_0x500e96(0x168))await conn[_0x500e96(0x173)]([_0x4f62ef[_0x500e96(0xc3)]]);}}function _0x33c5(_0x5ad33e,_0x5315e9){const _0x23103a=_0x2310();return _0x33c5=function(_0x33c5a4,_0x50f40e){_0x33c5a4=_0x33c5a4-0xa0;let _0x75ff6c=_0x23103a[_0x33c5a4];return _0x75ff6c;},_0x33c5(_0x5ad33e,_0x5315e9);}export async function participantsUpdate({id:_0x48954f,participants:_0x3fcdbd,action:_0x460d7a}){const _0x35163e=_0x7f07b7;if(opts[_0x35163e(0x16a)]||this[_0x35163e(0xd4)])return;if(global['db'][_0x35163e(0xac)]==null)await loadDatabase();const _0x4899dc=global['db'][_0x35163e(0xac)][_0x35163e(0x16f)][_0x48954f]||{},_0x2ea340={'promote':'💎','demote':'👋🏻️','welcome':_0x35163e(0xf8),'bye':_0x35163e(0xf8),'bug':'🐛','mail':_0x35163e(0xc1),'owner':'🪀'};switch(_0x460d7a){case _0x35163e(0xb7):const _0x483630=(_0x4899dc[_0x35163e(0xe1)]||this[_0x35163e(0x11b)]||conn[_0x35163e(0x11b)]||_0x2ea340['promote']+_0x35163e(0x171))[_0x35163e(0xe9)](_0x35163e(0x17e),'@'+_0x3fcdbd[0x0][_0x35163e(0x15f)]('@')[0x0]);_0x4899dc[_0x35163e(0x185)]&&this[_0x35163e(0x116)](_0x48954f,{'text':_0x483630[_0x35163e(0x102)](),'mentions':[_0x3fcdbd[0x0]]});break;case _0x35163e(0x174):const _0x4c4d72=(_0x4899dc[_0x35163e(0xae)]||this[_0x35163e(0x129)]||conn[_0x35163e(0x129)]||_0x2ea340[_0x35163e(0x174)]+'\x20@user\x20*demoted\x20from\x20admin*')[_0x35163e(0xe9)](_0x35163e(0x17e),'@'+_0x3fcdbd[0x0][_0x35163e(0x15f)]('@')[0x0]);_0x4899dc[_0x35163e(0x185)]&&this[_0x35163e(0x116)](_0x48954f,{'text':_0x4c4d72[_0x35163e(0x102)](),'mentions':[_0x3fcdbd[0x0]]});break;}}export async function groupsUpdate(_0x2a33d2){const _0x1b2a79=_0x7f07b7;if(opts[_0x1b2a79(0x16a)])return;for(const _0x44a543 of _0x2a33d2){const _0x5b6b96=_0x44a543['id'];if(!_0x5b6b96)continue;let _0x245509=global['db'][_0x1b2a79(0xac)][_0x1b2a79(0x16f)][_0x5b6b96]||{};const _0x3bf4eb={'desc':'📝','subject':'👀','icon':'🎇','revoke':'🔗','announceOn':'🔒','announceOff':'🔓','restrictOn':'🚫','restrictOff':'✅'};let _0x273de4='';if(!_0x245509[_0x1b2a79(0x185)])continue;if(_0x44a543['desc'])_0x273de4=(_0x245509[_0x1b2a79(0xd2)]||this[_0x1b2a79(0xd2)]||conn[_0x1b2a79(0xd2)]||'*'+_0x3bf4eb[_0x1b2a79(0xd7)]+_0x1b2a79(0x16b))[_0x1b2a79(0xe9)]('@desc',_0x44a543[_0x1b2a79(0xd7)]);else{if(_0x44a543[_0x1b2a79(0x112)])_0x273de4=(_0x245509[_0x1b2a79(0xcf)]||this[_0x1b2a79(0xcf)]||conn[_0x1b2a79(0xcf)]||'*'+_0x3bf4eb['subject']+_0x1b2a79(0xfa))[_0x1b2a79(0xe9)]('@subject',_0x44a543[_0x1b2a79(0x112)]);else{if(_0x44a543[_0x1b2a79(0x11d)])_0x273de4=(_0x245509[_0x1b2a79(0x16c)]||this[_0x1b2a79(0x16c)]||conn[_0x1b2a79(0x16c)]||'*'+_0x3bf4eb[_0x1b2a79(0x11d)]+_0x1b2a79(0xdc))[_0x1b2a79(0xe9)](_0x1b2a79(0xde),_0x44a543['icon']);else{if(_0x44a543[_0x1b2a79(0x140)])_0x273de4=(_0x245509[_0x1b2a79(0xe7)]||this[_0x1b2a79(0xe7)]||conn[_0x1b2a79(0xe7)]||'*'+_0x3bf4eb['revoke']+'\x20Group\x20Link\x20Has\x20Been\x20Changed\x20To*\x0a@revoke')[_0x1b2a79(0xe9)]('@revoke',_0x44a543[_0x1b2a79(0x140)]);else{if(_0x44a543[_0x1b2a79(0x12c)]===!![])_0x273de4=_0x245509[_0x1b2a79(0xf9)]||this[_0x1b2a79(0xf9)]||conn[_0x1b2a79(0xf9)]||'*'+_0x3bf4eb[_0x1b2a79(0x106)]+_0x1b2a79(0x14e);else{if(_0x44a543['announce']===![])_0x273de4=_0x245509[_0x1b2a79(0xda)]||this[_0x1b2a79(0xda)]||conn[_0x1b2a79(0xda)]||'*'+_0x3bf4eb[_0x1b2a79(0xd0)]+_0x1b2a79(0x15b);else{if(_0x44a543['restrict']===!![])_0x273de4=_0x245509[_0x1b2a79(0x123)]||this[_0x1b2a79(0x123)]||conn[_0x1b2a79(0x123)]||'*'+_0x3bf4eb[_0x1b2a79(0xc0)]+_0x1b2a79(0x120);else _0x44a543['restrict']===![]&&(_0x273de4=_0x245509[_0x1b2a79(0x183)]||this[_0x1b2a79(0x183)]||conn[_0x1b2a79(0x183)]||'*'+_0x3bf4eb['restrictOff']+_0x1b2a79(0x12b));}}}}}}if(!_0x273de4)continue;await this['sendMessage'](_0x5b6b96,{'text':_0x273de4,'mentions':this[_0x1b2a79(0x135)](_0x273de4)});}}export async function deleteUpdate(_0x2c1331){const _0x184cc3=_0x7f07b7;try{if(typeof process[_0x184cc3(0xc2)]['antidelete']===_0x184cc3(0xfb)||process[_0x184cc3(0xc2)][_0x184cc3(0xe0)][_0x184cc3(0x10b)]()==='false')return;const {fromMe:_0x3de502,id:_0x4e1319,participant:_0x3f0518}=_0x2c1331;if(_0x3de502)return;let _0x468d14=this[_0x184cc3(0xc4)](this[_0x184cc3(0xb4)](_0x4e1319));if(!_0x468d14)return;let _0x28adf5=global['db'][_0x184cc3(0xac)]['chats'][_0x468d14['chat']]||{};await this[_0x184cc3(0x11c)](conn[_0x184cc3(0xea)]['id'],('\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20≡\x20deleted\x20a\x20message\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20┌─⊷\x20\x20𝘼𝙉𝙏𝙄\x20𝘿𝙀𝙇𝙀𝙏𝙀\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20▢\x20*Number\x20:*\x20@'+_0x3f0518['split']`@`[0x0]+_0x184cc3(0x141))[_0x184cc3(0x102)](),_0x468d14,{'mentions':[_0x3f0518]}),this[_0x184cc3(0x142)](conn[_0x184cc3(0xea)]['id'],_0x468d14,![])[_0x184cc3(0x13b)](_0x414a8a=>console[_0x184cc3(0x145)](_0x414a8a,_0x468d14));}catch(_0xcb494){console[_0x184cc3(0x165)](_0xcb494);}}export async function pollUpdate(_0x204ff0){const _0x45bf46=_0x7f07b7;for(const {key:_0x301052,update:_0x4bf2d0}of _0x204ff0){if(_0x204ff0['pollUpdates']){const _0xe3a4e9=await this[_0x45bf46(0xc4)](this['loadMessage'](_0x301052['id']));if(_0xe3a4e9){const _0x5d6b99=await getAggregateVotesInPollMessage({'message':_0xe3a4e9['message'],'pollUpdates':_0xe3a4e9[_0x45bf46(0x161)]});_0x204ff0[_0x45bf46(0x161)][0x0][_0x45bf46(0x179)]=_0x5d6b99,await console[_0x45bf46(0x145)](_0x5d6b99),this['appenTextMessage'](_0x204ff0,_0x204ff0['pollUpdates'][0x0][_0x45bf46(0x179)]||_0x5d6b99[_0x45bf46(0xe5)](_0x2f3559=>_0x2f3559['voters']['length']!==0x0)[0x0]?.[_0x45bf46(0x17a)],_0x204ff0[_0x45bf46(0x100)]);}}}}export async function presenceUpdate(_0x5e6e69){const _0x2f4e47=_0x7f07b7,_0x41187c=_0x5e6e69['id'],_0x362443=Object[_0x2f4e47(0xce)](_0x5e6e69[_0x2f4e47(0xd6)]),_0x218365=_0x5e6e69['presences'][_0x362443]?.[_0x2f4e47(0xec)],_0x2efe92=global['db'][_0x2f4e47(0xac)]['users'][_0x362443[0x0]];if(_0x2efe92?.['afk']&&_0x218365===_0x2f4e47(0x163)&&_0x2efe92[_0x2f4e47(0x10d)]>-0x1){if(_0x2efe92[_0x2f4e47(0xee)]){_0x2efe92[_0x2f4e47(0x10d)]=-0x1,_0x2efe92['afkReason']=_0x2f4e47(0x126);return;}await console['log']('AFK');const _0x4225a1=_0x362443[0x0]['split']('@')[0x0],_0x1a8c16=new Date()-_0x2efe92['afk'],_0x1037c1='\x0a@'+_0x4225a1+_0x2f4e47(0x172)+(_0x2efe92[_0x2f4e47(0x131)]?_0x2efe92['afkReason']:_0x2f4e47(0x155))+'\x0aFor\x20The\x20Past\x20'+_0x1a8c16[_0x2f4e47(0x15a)]()+'.\x0a';this[_0x2f4e47(0x11c)](_0x41187c,_0x1037c1,null,{'mentions':this['parseMention'](_0x1037c1)}),_0x2efe92[_0x2f4e47(0x10d)]=-0x1,_0x2efe92[_0x2f4e47(0x131)]='';}}global[_0x7f07b7(0x17d)]=(_0x533536,_0x5bc48c,_0x4694e0)=>{const _0x23d12f=_0x7f07b7,_0x29a361='👋🏻\x20Hai\x20*@'+_0x5bc48c[_0x23d12f(0xf1)][_0x23d12f(0x15f)]('@')[0x0]+_0x23d12f(0xfe),_0x3fef2c={'general':'⚙️','owner':'🪀','moderator':_0x23d12f(0xf0),'premium':'💎','group':'👥','private':'👻','admin':'👤','botAdmin':'😸','unreg':'🔒','nsfw':'🔞','rpg':'🎮','restrict':'🙊'},_0x5ce2bf={'owner':'*'+_0x3fef2c['owner']+_0x23d12f(0x157)+_0x29a361+_0x23d12f(0x16d),'moderator':'*'+_0x3fef2c[_0x23d12f(0x175)]+_0x23d12f(0x178)+_0x29a361+'\x20This\x20Command\x20Can\x20Only\x20Be\x20Used\x20By\x20*Moderators*!','premium':'*'+_0x3fef2c[_0x23d12f(0x154)]+_0x23d12f(0x158)+_0x29a361+_0x23d12f(0x144),'group':'*'+_0x3fef2c[_0x23d12f(0xf7)]+_0x23d12f(0x109)+_0x29a361+_0x23d12f(0x12d),'private':'*'+_0x3fef2c[_0x23d12f(0x15c)]+_0x23d12f(0x117)+_0x29a361+_0x23d12f(0xbe),'admin':'*'+_0x3fef2c[_0x23d12f(0xb6)]+_0x23d12f(0xe2)+_0x29a361+_0x23d12f(0x14f),'botAdmin':'*'+_0x3fef2c[_0x23d12f(0x124)]+_0x23d12f(0xc6)+_0x29a361+_0x23d12f(0x101),'unreg':'*'+_0x3fef2c[_0x23d12f(0xf3)]+'\x20Registration\x20Query*\x0a\x0a\x20\x20\x20\x20'+_0x29a361+_0x23d12f(0x13a)+_0x5bc48c[_0x23d12f(0x17a)]+_0x23d12f(0xbc),'nsfw':'*'+_0x3fef2c[_0x23d12f(0x167)]+_0x23d12f(0x143)+_0x29a361+_0x23d12f(0xcb),'restrict':'*'+_0x3fef2c[_0x23d12f(0x184)]+'\x20Inactive\x20Feature\x20Query*\x0a\x0a\x20\x20\x20\x20'+_0x29a361+_0x23d12f(0x17f)}[_0x533536];if(_0x5ce2bf)return _0x5bc48c[_0x23d12f(0x11c)](_0x5ce2bf);};let file=global['__filename'](import.meta[_0x7f07b7(0x14d)],!![]);watchFile(file,async()=>{const _0x2465f9=_0x7f07b7;unwatchFile(file),console['log'](_0x48b56d[_0x2465f9(0x115)](_0x2465f9(0x13d)));if(global[_0x2465f9(0x162)])console[_0x2465f9(0x145)](await global['reloadHandler']());});