Skip to content

Instantly share code, notes, and snippets.

@nu338
Forked from souravkl11/onwa.js
Last active April 2, 2023 01:16
Show Gist options
  • Save nu338/e1385ae20ee40ca856561c8ef43ec911 to your computer and use it in GitHub Desktop.
Save nu338/e1385ae20ee40ca856561c8ef43ec911 to your computer and use it in GitHub Desktop.
// Credit: @kunjappusir/raganork-md
const {
Module
} = require('../main');
Module({
pattern: "ANSAD ?(.*)",
fromMe: true,
desc: 'Shows all registered numbers, and their about set date with given numbers',
usage: '.onwa +9162823447xx Maximum 3 x'
}, async (message, match) => {
var _0x42316c=_0x1739;(function(_0x43f185,_0x506f73){var _0x55d548=_0x1739,_0x1d3291=_0x43f185();while(!![]){try{var _0x57335f=parseInt(_0x55d548(0x1c9))/0x1*(-parseInt(_0x55d548(0x1c8))/0x2)+parseInt(_0x55d548(0x1b0))/0x3+-parseInt(_0x55d548(0x1c4))/0x4*(parseInt(_0x55d548(0x1ce))/0x5)+-parseInt(_0x55d548(0x1e2))/0x6+-parseInt(_0x55d548(0x1e5))/0x7+-parseInt(_0x55d548(0x1e0))/0x8+parseInt(_0x55d548(0x1b1))/0x9*(parseInt(_0x55d548(0x1c0))/0xa);if(_0x57335f===_0x506f73)break;else _0x1d3291['push'](_0x1d3291['shift']());}catch(_0x1941ae){_0x1d3291['push'](_0x1d3291['shift']());}}}(_0x4136,0xe1cbb));var _0x44a930=_0x2ad3;(function(_0x56e3de,_0x3e0a7f){var _0x382aea=_0x1739,_0x1dc267=_0x2ad3,_0x414131=_0x56e3de();while(!![]){try{var _0x50ad6a=parseInt(_0x1dc267(0x70))/0x1+parseInt(_0x1dc267(0x90))/0x2*(parseInt(_0x1dc267(0x80))/0x3)+parseInt(_0x1dc267(0x79))/0x4*(parseInt(_0x1dc267(0x6c))/0x5)+parseInt(_0x1dc267(0x6b))/0x6+parseInt(_0x1dc267(0x74))/0x7*(-parseInt(_0x1dc267(0x92))/0x8)+-parseInt(_0x1dc267(0x73))/0x9+parseInt(_0x1dc267(0x84))/0xa*(-parseInt(_0x1dc267(0x8b))/0xb);if(_0x50ad6a===_0x3e0a7f)break;else _0x414131[_0x382aea(0x1d1)](_0x414131[_0x382aea(0x1b6)]());}catch(_0x221ae4){_0x414131[_0x382aea(0x1d1)](_0x414131[_0x382aea(0x1b6)]());}}}(_0x8ec9,0x5305c));function _0x2ad3(_0x3067ec,_0x57cd9d){var _0x43d738=_0x8ec9();return _0x2ad3=function(_0x460ae9,_0x4b2e83){_0x460ae9=_0x460ae9-0x6b;var _0x1e904c=_0x43d738[_0x460ae9];return _0x1e904c;},_0x2ad3(_0x3067ec,_0x57cd9d);}var _0x363640=_0x143a;(function(_0x1ed53c,_0x334963){var _0x481c15=_0x2ad3,_0xf5d34d=_0x143a,_0x2e78a3=_0x1ed53c();while(!![]){try{var _0x1ab909=-parseInt(_0xf5d34d(0xa6))/0x1+-parseInt(_0xf5d34d(0x94))/0x2*(-parseInt(_0xf5d34d(0x92))/0x3)+-parseInt(_0xf5d34d(0x8f))/0x4+-parseInt(_0xf5d34d(0x95))/0x5+-parseInt(_0xf5d34d(0x8a))/0x6+-parseInt(_0xf5d34d(0xa1))/0x7*(-parseInt(_0xf5d34d(0x9e))/0x8)+parseInt(_0xf5d34d(0xa7))/0x9*(parseInt(_0xf5d34d(0x99))/0xa);if(_0x1ab909===_0x334963)break;else _0x2e78a3[_0x481c15(0x75)](_0x2e78a3[_0x481c15(0x7f)]());}catch(_0x28e227){_0x2e78a3[_0x481c15(0x75)](_0x2e78a3[_0x481c15(0x7f)]());}}}(_0x4491,0x861ef));function _0x1739(_0x346ab0,_0x385bc3){var _0x4136cd=_0x4136();return _0x1739=function(_0x1739fd,_0x53021e){_0x1739fd=_0x1739fd-0x1af;var _0x2cf632=_0x4136cd[_0x1739fd];return _0x2cf632;},_0x1739(_0x346ab0,_0x385bc3);}function _0x4491(){var _0x1156b5=_0x1739,_0x1ba9f3=_0x2ad3,_0x11ac32=[_0x1ba9f3(0x98),_0x1ba9f3(0x86),_0x1156b5(0x1b3),_0x1ba9f3(0x8a),_0x1ba9f3(0x95),_0x1ba9f3(0x8f),_0x1ba9f3(0x88),'onWhatsApp',_0x1ba9f3(0x7a),_0x1ba9f3(0x8d),_0x1ba9f3(0x8c),_0x1ba9f3(0x97),_0x1ba9f3(0x94),_0x1156b5(0x1c1),_0x1156b5(0x1b4),_0x1ba9f3(0x87),_0x1ba9f3(0x85),_0x1ba9f3(0x7b),_0x1156b5(0x1af),'4217814gUfFgz',_0x1ba9f3(0x7d),_0x1156b5(0x1d4),_0x1ba9f3(0x89),_0x1ba9f3(0x72),_0x1156b5(0x1ca),_0x1ba9f3(0x7c),_0x1ba9f3(0x76),_0x1ba9f3(0x6d),_0x1ba9f3(0x78),_0x1ba9f3(0x6e),_0x1156b5(0x1c5),_0x1ba9f3(0x75),_0x1ba9f3(0x96),_0x1ba9f3(0x82),_0x1ba9f3(0x77),_0x1ba9f3(0x83),_0x1ba9f3(0x8e)];return _0x4491=function(){return _0x11ac32;},_0x4491();}var ph=match[0x1];ph=ph[_0x44a930(0x93)](/\+/g,'');var total=ph[_0x363640(0x9b)],lst='',noton=[],result={},xn=ph[_0x363640(0xa4)]('')[_0x363640(0xa9)](_0x484ccd=>_0x484ccd==='x')[_0x363640(0x9b)];if(xn===0x1)lst=0xa;if(xn===0x2)lst=0x64;if(xn===0x3)lst=0x3e8;if(xn>0x3)throw new Error();var rs='',options={'weekday':_0x363640(0x8b),'year':_0x44a930(0x89),'month':_0x363640(0x8b),'day':_0x363640(0x8d)},msg='';for(var i=0x0;i<lst;i++){if((ph[_0x44a930(0x93)](/x/g,'')+i)[_0x363640(0x9b)]===total-0x2)rs=ph[_0x363640(0x89)]('x','00'+i);if((ph[_0x363640(0x89)](/x/g,'')+i)[_0x363640(0x9b)]===total-0x1)rs=ph[_0x363640(0x89)]('x','0'+i);if((ph[_0x363640(0x89)](/x/g,'')+i)[_0x363640(0x9b)]===total)rs=ph[_0x363640(0x89)]('x',i);rs=rs[_0x363640(0x89)](/x/g,'');var reslt=await message[_0x363640(0xa5)][_0x363640(0xa3)](rs);if(reslt[0x0]!==undefined&&reslt[0x0][_0x44a930(0x71)]){try{var {status,setAt}=await message[_0x42316c(0x1da)][_0x363640(0xaa)](rs+_0x44a930(0x81));}catch{var status='',setAt='';}try{var date=setAt[_0x44a930(0x7e)](_0x363640(0x9a),options);}catch{var date=_0x363640(0x93);}!result[date[_0x44a930(0x7a)](',')[0x2]?.[_0x363640(0xa2)]()||_0x363640(0x88)]?result[date[_0x363640(0xa4)](',')[0x2]?.[_0x42316c(0x1be)]()||_0x363640(0x88)]=[]:'',result[date['split'](',')[0x2]?.[_0x42316c(0x1be)]()||_0x363640(0x88)][_0x44a930(0x75)]({'status':status,'date':date,'number':rs});}else noton[_0x363640(0x96)](rs);}function _0x8ec9(){var _0x5be8a8=_0x42316c,_0x4756f6=[_0x5be8a8(0x1d6),_0x5be8a8(0x1cc),'1970',_0x5be8a8(0x1e6),_0x5be8a8(0x1dc),'*_⭕===\x20',_0x5be8a8(0x1d0),'10NpJrQi',_0x5be8a8(0x1c3),_0x5be8a8(0x1e7),_0x5be8a8(0x1e1),_0x5be8a8(0x1db),_0x5be8a8(0x1d9),_0x5be8a8(0x1bf),'4609458YjZdvr',_0x5be8a8(0x1bc),'push',_0x5be8a8(0x1ba),_0x5be8a8(0x1cf),_0x5be8a8(0x1cb),_0x5be8a8(0x1c7),_0x5be8a8(0x1e3),_0x5be8a8(0x1cd),_0x5be8a8(0x1df),'long',_0x5be8a8(0x1b5),_0x5be8a8(0x1b6),'1748019NSQVqW',_0x5be8a8(0x1d8),_0x5be8a8(0x1dd),_0x5be8a8(0x1b9),_0x5be8a8(0x1b7),_0x5be8a8(0x1bd),_0x5be8a8(0x1c6),_0x5be8a8(0x1d5),_0x5be8a8(0x1be),_0x5be8a8(0x1d7),_0x5be8a8(0x1de),_0x5be8a8(0x1c2),'750862GbQmNK',_0x5be8a8(0x1da),_0x5be8a8(0x1bb),_0x5be8a8(0x1d3),_0x5be8a8(0x1b8),_0x5be8a8(0x1e4),_0x5be8a8(0x1d2),_0x5be8a8(0x1af)];return _0x8ec9=function(){return _0x4756f6;},_0x8ec9();}var notonmsg=_0x44a930(0x6f)+noton[_0x363640(0xa0)]('\x0a'),ms=[];result[_0x363640(0x97)]?result[_0x363640(0x98)]=result[_0x44a930(0x96)]:'',delete result[_0x363640(0x97)];function _0x4136(){var _0x1264b0=['Unavailable','join','No\x20about','65JxCoLG','30oggKJi','30156Ydpidd','push','8FQDEQV','84994UgxVZz','\x20===⭕_*\x0a','_*❌===\x20Not\x20registered\x20on\x20WA\x20===❌*_\x0a\x0a','\x0a_*Date:*\x20','numeric','@s.whatsapp.net','exists','client','491208giowXF','*_Onwa\x20©\x202022_\x20𝑅𝐺𝑁𝐾*\x0a\x0a','No\x20date','number','date','7379816YXPIws','_Numbers\x20not\x20registered\x20on\x20WhatsApp:_\x0a\x0a','3590760IGpFbz','split','_\x0a_*Bio:*_\x20','6209546dprIBq','4376547cioVgO','2CrLFGn','replace','1135440avaxLq','108lGOGQm','_\x0a_','136KeonwH','fetchStatus','toLocaleDateString','shift','10hpKGEK','2PjmlbP','en-US','status','length','3663170OJcpgL','_*Number:*\x20+','trim','map','3529150QIWycc','filter','626527KHYCBG','2812839duaGUv','251356SJkjUV','1581130zwLQJV','sendReply','707164lPYoKq','927358zGsotc','1WvDSwH','1133840KLkfHD'];_0x4136=function(){return _0x1264b0;};return _0x4136();}for(var i in result){msg+=_0x44a930(0x99)+i+_0x363640(0x8c)+result[i][_0x363640(0x8e)](_0x4cddcc=>_0x363640(0xac)+_0x4cddcc[_0x363640(0x9f)]+_0x44a930(0x91)+_0x4cddcc[_0x363640(0x91)]+_0x363640(0xa8)+_0x4cddcc[_0x363640(0x90)]+'_')[_0x363640(0xa0)]('\x0a\x0a')+'\x0a\x0a';}function _0x143a(_0x3799ab,_0x36f2d5){var _0xffa77=_0x4491();return _0x143a=function(_0x3a5d11,_0x444a5f){_0x3a5d11=_0x3a5d11-0x88;var _0x5de52f=_0xffa77[_0x3a5d11];return _0x5de52f;},_0x143a(_0x3799ab,_0x36f2d5);}let send=_0x363640(0x9c)+msg+_0x363640(0xab)+'_'+noton[_0x44a930(0x95)](_0x42316c(0x1b2))+'_';await message[_0x363640(0x9d)](send);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment