forked from Johanlieb34/TojiMd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_Antispam.js
1 lines (1 loc) · 3.38 KB
/
_Antispam.js
1
function _0x4d33(_0x4cd8b2,_0x16627f){const _0x2dfd32=_0x2dfd();return _0x4d33=function(_0x4d33ca,_0x1bf39f){_0x4d33ca=_0x4d33ca-0x104;let _0x2069f9=_0x2dfd32[_0x4d33ca];return _0x2069f9;},_0x4d33(_0x4cd8b2,_0x16627f);}function _0x2dfd(){const _0x15a428=['pollUpdateMessage','1522900VpTamp','toUpperCase','131184dCnkEr','audio','chats','reply','623304toNdkQ','PTT','antiSpam','ptt','528qGCyrr','banned','data','replace','8xihrjb','672858MlJjYq','7697004QjNNJc','isBaileys','count','✅\x20*Cooldown\x20finished*\x0aYou\x20can\x20send\x20messages\x20again.','ceil','*\x0aWait\x20for\x20','reactionMessage','\x20seconds','❌\x20*Please\x20do\x20not\x20spam\x20','166098nCotVz','protocolMessage','mtype','msg','now','lastspam','isBanned','4102902oNVeEO','spam','sender'];_0x2dfd=function(){return _0x15a428;};return _0x2dfd();}(function(_0x39f563,_0x28187b){const _0x13e129=_0x4d33,_0xf9601d=_0x39f563();while(!![]){try{const _0x266a22=parseInt(_0x13e129(0x127))/0x1+parseInt(_0x13e129(0x11d))/0x2+-parseInt(_0x13e129(0x10a))/0x3+parseInt(_0x13e129(0x11c))/0x4*(-parseInt(_0x13e129(0x10e))/0x5)+parseInt(_0x13e129(0x114))/0x6+parseInt(_0x13e129(0x11e))/0x7+-parseInt(_0x13e129(0x118))/0x8*(-parseInt(_0x13e129(0x110))/0x9);if(_0x266a22===_0x28187b)break;else _0xf9601d['push'](_0xf9601d['shift']());}catch(_0x1992a0){_0xf9601d['push'](_0xf9601d['shift']());}}}(_0x2dfd,0xa8c05));import{performance}from'perf_hooks';export async function before(_0x5ea0cf){const _0x14ab22=_0x4d33,_0x3708e7=global['db'][_0x14ab22(0x11a)]['users'],_0xd2bb0=global['db'][_0x14ab22(0x11a)][_0x14ab22(0x112)];if(!_0xd2bb0[_0x5ea0cf['chat']][_0x14ab22(0x116)]||_0x5ea0cf[_0x14ab22(0x11f)]||_0x5ea0cf[_0x14ab22(0x105)]===_0x14ab22(0x104)||_0x5ea0cf[_0x14ab22(0x105)]===_0x14ab22(0x10d)||_0x5ea0cf[_0x14ab22(0x105)]===_0x14ab22(0x124))return;if(!_0x5ea0cf[_0x14ab22(0x106)]||!_0x5ea0cf['message']||_0x5ea0cf['key']['remoteJid']!==_0x5ea0cf['chat']||_0x3708e7[_0x5ea0cf[_0x14ab22(0x10c)]][_0x14ab22(0x119)]||_0xd2bb0[_0x5ea0cf['chat']][_0x14ab22(0x109)])return;this[_0x14ab22(0x10b)]=this[_0x14ab22(0x10b)]||{},this[_0x14ab22(0x10b)][_0x5ea0cf[_0x14ab22(0x10c)]]=this[_0x14ab22(0x10b)][_0x5ea0cf['sender']]||{'count':0x0,'lastspam':0x0};const _0x1eabd7=performance[_0x14ab22(0x107)](),_0x1e60e3=_0x1eabd7-this['spam'][_0x5ea0cf[_0x14ab22(0x10c)]][_0x14ab22(0x108)];if(_0x1e60e3<0x2710){this['spam'][_0x5ea0cf[_0x14ab22(0x10c)]][_0x14ab22(0x120)]++;if(this[_0x14ab22(0x10b)][_0x5ea0cf[_0x14ab22(0x10c)]]['count']>=0x5){_0x3708e7[_0x5ea0cf[_0x14ab22(0x10c)]][_0x14ab22(0x119)]=!![],this[_0x14ab22(0x10b)][_0x5ea0cf['sender']][_0x14ab22(0x108)]=_0x1eabd7+0x1388,setTimeout(()=>{const _0x21aaf0=_0x14ab22;_0x3708e7[_0x5ea0cf[_0x21aaf0(0x10c)]]['banned']=![],this[_0x21aaf0(0x10b)][_0x5ea0cf[_0x21aaf0(0x10c)]][_0x21aaf0(0x120)]=0x0,_0x5ea0cf[_0x21aaf0(0x113)](_0x21aaf0(0x121));},0x1388);const _0x286ad6=_0x5ea0cf[_0x14ab22(0x105)][_0x14ab22(0x11b)](/message$/i,'')[_0x14ab22(0x11b)](_0x14ab22(0x111),_0x5ea0cf['msg'][_0x14ab22(0x117)]?_0x14ab22(0x115):_0x14ab22(0x111))['replace'](/^./,_0x4e2c56=>_0x4e2c56[_0x14ab22(0x10f)]())||'Unknown';return _0x5ea0cf['reply'](_0x14ab22(0x126)+_0x286ad6+_0x14ab22(0x123)+Math[_0x14ab22(0x122)]((this['spam'][_0x5ea0cf[_0x14ab22(0x10c)]][_0x14ab22(0x108)]-_0x1eabd7)/0x3e8)+_0x14ab22(0x125));}}else this[_0x14ab22(0x10b)][_0x5ea0cf[_0x14ab22(0x10c)]][_0x14ab22(0x120)]=0x0;this[_0x14ab22(0x10b)][_0x5ea0cf[_0x14ab22(0x10c)]][_0x14ab22(0x108)]=_0x1eabd7;}