forked from Johanlieb34/TojiMd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_antilink.js
1 lines (1 loc) · 2.76 KB
/
_antilink.js
1
function _0x3cff(){const _0x2dd07d=['https://chat.whatsapp.com/','exec','fromMe','156588zUCtwP','antiLink','includes','4232548UrRPqW','reply','isGroup','sender','11pxRojs','remove','59472kNJEiT','data','groupParticipantsUpdate','split','4TZrJuY','974211EQYsIP','text','903009ZvAvxR','412270IjpUKA','user','182ZYNlfn','\x0a\x0aIM\x20not\x20an\x20admin\x20so\x20I\x20canT\x20expel\x20you\x20:\x22v','*\x20\x20you\x20will\x20be\x20kicked\x20out\x20of\x20the\x20group\x20','chat','2483940bVEsZs','135OcFzwO'];_0x3cff=function(){return _0x2dd07d;};return _0x3cff();}function _0x3b8b(_0x5bb025,_0x2a0b11){const _0x3cff7d=_0x3cff();return _0x3b8b=function(_0x3b8be4,_0xda0bf0){_0x3b8be4=_0x3b8be4-0xfb;let _0x316624=_0x3cff7d[_0x3b8be4];return _0x316624;},_0x3b8b(_0x5bb025,_0x2a0b11);}(function(_0x466c11,_0xad19e2){const _0x5445c6=_0x3b8b,_0x2d4a68=_0x466c11();while(!![]){try{const _0x15d432=-parseInt(_0x5445c6(0x101))/0x1+parseInt(_0x5445c6(0xfe))/0x2*(-parseInt(_0x5445c6(0xff))/0x3)+parseInt(_0x5445c6(0x110))/0x4+parseInt(_0x5445c6(0x108))/0x5+-parseInt(_0x5445c6(0x10d))/0x6*(-parseInt(_0x5445c6(0x104))/0x7)+parseInt(_0x5445c6(0x116))/0x8*(-parseInt(_0x5445c6(0x109))/0x9)+parseInt(_0x5445c6(0x102))/0xa*(parseInt(_0x5445c6(0x114))/0xb);if(_0x15d432===_0xad19e2)break;else _0x2d4a68['push'](_0x2d4a68['shift']());}catch(_0x1ed05a){_0x2d4a68['push'](_0x2d4a68['shift']());}}}(_0x3cff,0x95193));const linkRegex=/chat.whatsapp.com\/(?:invite\/)?([0-9A-Za-z]{20,24})/i;export async function before(_0xa66568,{conn:_0x2d0b67,isAdmin:_0x468f3e,isBotAdmin:_0x2a27d8}){const _0x3d1add=_0x3b8b;if(_0xa66568['isBaileys']&&_0xa66568[_0x3d1add(0x10c)])return!0x0;if(!_0xa66568[_0x3d1add(0x112)])return!0x1;let _0xf4a679=global['db'][_0x3d1add(0xfb)]['chats'][_0xa66568['chat']],_0x9de608=global['db'][_0x3d1add(0xfb)]['settings'][this[_0x3d1add(0x103)]['jid']]||{};const _0x3d4089=linkRegex[_0x3d1add(0x10b)](_0xa66568[_0x3d1add(0x100)]);if(_0xf4a679[_0x3d1add(0x10e)]&&_0x3d4089&&!_0x468f3e){if(_0x2a27d8){const _0x451a39=_0x3d1add(0x10a)+await this['groupInviteCode'](_0xa66568[_0x3d1add(0x107)]);if(_0xa66568['text'][_0x3d1add(0x10f)](_0x451a39))return!0x0;}await _0x2d0b67[_0x3d1add(0x111)](_0xa66568[_0x3d1add(0x107)],'*≡\x20Link\x20Detected*\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0aWe\x20do\x20not\x20allow\x20links\x20from\x20other\x20groups\x20\x0aI\x27m\x20sorry\x20*@'+_0xa66568['sender'][_0x3d1add(0xfd)]('@')[0x0]+_0x3d1add(0x106)+(_0x2a27d8?'':_0x3d1add(0x105)),null,{'mentions':[_0xa66568[_0x3d1add(0x113)]]});if(_0x2a27d8&&_0xf4a679[_0x3d1add(0x10e)])await _0x2d0b67['sendMessage'](_0xa66568[_0x3d1add(0x107)],{'delete':_0xa66568['key']}),await _0x2d0b67[_0x3d1add(0xfc)](_0xa66568[_0x3d1add(0x107)],[_0xa66568[_0x3d1add(0x113)]],_0x3d1add(0x115));else{if(!_0xf4a679['antiLink'])return;}}return!0x0;}