| 453 | function _0x7e78(_0x1fef30,_0x2955ef){const _0x2f9b97=_0x2f9b();return _0x7e78=function(_0x7e78d4,_0x5dc616){_0x7e78d4=_0x7e78d4-0xca;let _0x1160e4=_0x2f9b97[_0x7e78d4];return _0x1160e4;},_0x7e78(_0x1fef30,_0x2955ef);}const _0xfc9ff1=_0x7e78;(function(_0x25e5f0,_0x69918){const _0x4ef9af=_0x7e78,_0x4bb0b0=_0x25e5f0();while(!![]){try{const _0x2740e9=-parseInt(_0x4ef9af(0xce))/0x1+-parseInt(_0x4ef9af(0x121))/0x2*(-parseInt(_0x4ef9af(0xf1))/0x3)+parseInt(_0x4ef9af(0xd5))/0x4*(-parseInt(_0x4ef9af(0x101))/0x5)+parseInt(_0x4ef9af(0xfb))/0x6+parseInt(_0x4ef9af(0xda))/0x7+parseInt(_0x4ef9af(0x11e))/0x8+-parseInt(_0x4ef9af(0xfd))/0x9;if(_0x2740e9===_0x69918)break;else _0x4bb0b0['push'](_0x4bb0b0['shift']());}catch(_0x1fcef7){_0x4bb0b0['push'](_0x4bb0b0['shift']());}}}(_0x2f9b,0xb9599));function _0x2f9b(){const _0x408319=['An\x20error\x20occurred\x20while\x20retrieving\x20phone\x20information.','createReadStream','unlinkSync','\x0a\x20\x20\x20\x20\x20\x20\x20\x20•\x20**Phone\x20Type**:\x20','getHeaders','trt','stickerMessage','random','.png?background=','video','Unsupported\x20media\x20type.\x20Reply\x20with\x20an\x20image,\x20video,\x20or\x20audio\x20file.','Client-ID\x20','make\x20sure\x20to\x20mention\x20the\x20media','Please\x20reply\x20to\x20any\x20message\x20(text,\x20audio,\x20image,\x20or\x20video).','FULL','percent','fluent-ffmpeg','photo','toFormat','uploadFile','Here\x20is\x20your\x20audio\x20URL\x20(MP3):\x0a','transparent','url1','Spark-X',')\x0a\x20\x20\x20\x20\x20\x20\x20\x20•\x20**Device\x20Status**:\x20','%\x20(','2052960vHpuMt','toBuffer','.png','1492zTczNN','join','@whiskeysockets/baileys','online','Error\x20converting\x20audio\x20to\x20MP3:','(eg\x20:\x20trt\x20en)','store','image','wrte','Not\x20Charging','General','b40a1820d63cd4e','ffmpeg\x20-i\x20','123986NNZzlZ','floor','save','\x0a\x20\x20\x20\x20\x20\x20\x20\x20•\x20**Battery**:\x20','fromMe','audioMessage','platform','4SaLbdc','imageMessage','\x0a\x20\x20\x20\x20\x20\x20\x20\x20','key','Um\x20mention\x20a\x20non-animated\x20sticker','4838967vkWTXt','👨🏿💻','sendMessage','Conversion','Mention\x20a\x20texte\x20Message','name','Error\x20uploading\x20to\x20Imgur\x20:','Here\x20is\x20your\x20video\x20URL:\x0a','Error\x20fetching\x20phone\x20information:','Failed\x20to\x20process\x20the\x20audio\x20file.','post','Here\x20is\x20your\x20image\x20URL:\x0a','readFileSync','append','contacts','The\x20video\x20is\x20too\x20long.\x20Please\x20send\x20a\x20smaller\x20video.','link','error','Offline','audio','https://api.imgur.com/3/image','12345','Unknown','3189luUDsi','downloadAndSaveMediaMessage','File\x20does\x20not\x20exist','Online','node-catbox','end','data','https://api.memegen.link/images/custom/-/','../Ibrahim/adams','.mp3','4570380SBVqZX','Please\x20reply\x20to\x20an\x20image,\x20video,\x20or\x20audio\x20file.','6044544KmImCR','Error\x20retrieving\x20the\x20file\x20link','You','wa-sticker-formatter','4739170kpGYTw','plugged','videoMessage'];_0x2f9b=function(){return _0x408319;};return _0x2f9b();}const {Sticker,createSticker,StickerTypes}=require(_0xfc9ff1(0x100)),{adams}=require(_0xfc9ff1(0xf9)),{downloadMediaMessage}=require(_0xfc9ff1(0x123)),fs=require('fs-extra'),ffmpeg=require(_0xfc9ff1(0x114)),{Catbox}=require(_0xfc9ff1(0xf5)),catbox=new Catbox();async function uploadToCatbox(_0x42737f){const _0x3ab5d2=_0xfc9ff1;if(!fs['existsSync'](_0x42737f))throw new Error(_0x3ab5d2(0xf3));try{const _0x240672=await catbox[_0x3ab5d2(0x117)]({'path':_0x42737f});if(_0x240672)return _0x240672;else throw new Error(_0x3ab5d2(0xfe));}catch(_0x4ca52f){throw new Error(String(_0x4ca52f));}}async function convertToMp3(_0x12f899,_0x34d7f5){return new Promise((_0x34d38b,_0x1afd09)=>{const _0xb8f1c3=_0x7e78;ffmpeg(_0x12f899)[_0xb8f1c3(0x116)]('mp3')['on'](_0xb8f1c3(0xeb),_0x144691=>_0x1afd09(_0x144691))['on'](_0xb8f1c3(0xf6),()=>_0x34d38b(_0x34d7f5))[_0xb8f1c3(0xd0)](_0x34d7f5);});}adams({'nomCom':_0xfc9ff1(0x11a),'categorie':_0xfc9ff1(0xcb),'reaction':_0xfc9ff1(0xdb)},async(_0x55550a,_0xa655c9,_0x392217)=>{const _0x3367c3=_0xfc9ff1,{msgRepondu:_0x7d99b9,repondre:_0x1655eb}=_0x392217;if(!_0x7d99b9){_0x1655eb(_0x3367c3(0xfc));return;}let _0x5ebd91,_0x348850;if(_0x7d99b9[_0x3367c3(0x103)]){const _0x274fc5=_0x7d99b9[_0x3367c3(0x103)]['fileLength'];if(_0x274fc5>0x32*0x400*0x400){_0x1655eb(_0x3367c3(0xe9));return;}_0x5ebd91=await _0xa655c9[_0x3367c3(0xf2)](_0x7d99b9[_0x3367c3(0x103)]),_0x348850=_0x3367c3(0x10d);}else{if(_0x7d99b9[_0x3367c3(0xd6)])_0x5ebd91=await _0xa655c9[_0x3367c3(0xf2)](_0x7d99b9['imageMessage']),_0x348850=_0x3367c3(0x128);else{if(_0x7d99b9[_0x3367c3(0xd3)]){_0x5ebd91=await _0xa655c9[_0x3367c3(0xf2)](_0x7d99b9[_0x3367c3(0xd3)]),_0x348850=_0x3367c3(0xed);const _0x4ead5a=_0x5ebd91+_0x3367c3(0xfa);try{await convertToMp3(_0x5ebd91,_0x4ead5a),fs[_0x3367c3(0x106)](_0x5ebd91),_0x5ebd91=_0x4ead5a;}catch(_0x4c12b2){console['error'](_0x3367c3(0x125),_0x4c12b2),_0x1655eb(_0x3367c3(0xe3));return;}}else{_0x1655eb(_0x3367c3(0x10e));return;}}}try{const _0x3b354e=await uploadToCatbox(_0x5ebd91);fs['unlinkSync'](_0x5ebd91);switch(_0x348850){case'image':_0x1655eb(_0x3367c3(0xe5)+_0x3b354e);break;case _0x3367c3(0x10d):_0x1655eb(_0x3367c3(0xe1)+_0x3b354e);break;case _0x3367c3(0xed):_0x1655eb(_0x3367c3(0x118)+_0x3b354e);break;default:_0x1655eb('An\x20unknown\x20error\x20occurred.');break;}}catch(_0x251479){console[_0x3367c3(0xeb)]('Error\x20while\x20creating\x20your\x20URL:',_0x251479),_0x1655eb('Oops,\x20an\x20error\x20occurred.');}}),adams({'nomCom':'getdevice','categorie':_0xfc9ff1(0xcb),'reaction':'📱'},async(_0x584ba2,_0x51441c,_0x3b9dc6)=>{const _0x5a7308=_0xfc9ff1,{msgRepondu:_0x170401,repondre:_0x400440,sender:_0x1d0d09}=_0x3b9dc6;if(!_0x170401){_0x400440(_0x5a7308(0x111));return;}try{const _0x74be77=_0x51441c[_0x5a7308(0x127)][_0x5a7308(0xe8)][_0x1d0d09]||{},_0xf7a25b=_0x51441c['battery']||{},_0x177f30=_0x170401[_0x5a7308(0xd8)][_0x5a7308(0xd2)]?_0x5a7308(0xff):_0x74be77[_0x5a7308(0xd4)]||_0x5a7308(0xf0),_0x35c1e9=('\x0a\x20\x20\x20\x20\x20\x20\x20\x20📱\x20**Phone\x20Information**\x0a\x20\x20\x20\x20\x20\x20\x20\x20•\x20**Name**:\x20'+(_0x74be77[_0x5a7308(0xdf)]||'Unknown')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20•\x20**JID**:\x20'+_0x1d0d09+_0x5a7308(0x107)+_0x177f30+_0x5a7308(0xd1)+(_0xf7a25b[_0x5a7308(0x113)]||_0x5a7308(0xf0))+_0x5a7308(0x11d)+(_0xf7a25b[_0x5a7308(0x102)]?'Charging':_0x5a7308(0xca))+_0x5a7308(0x11c)+(_0x51441c[_0x5a7308(0x124)]?_0x5a7308(0xf4):_0x5a7308(0xec))+_0x5a7308(0xd7))['trim']();_0x400440(_0x35c1e9);}catch(_0x4f1ef8){console['error'](_0x5a7308(0xe2),_0x4f1ef8),_0x400440(_0x5a7308(0x104));}}),adams({'nomCom':_0xfc9ff1(0x129),'categorie':_0xfc9ff1(0xdd),'reaction':_0xfc9ff1(0xdb)},async(_0x170612,_0x3cb9cd,_0x5140e2)=>{const _0xf03d1f=_0xfc9ff1,{ms:_0x15bd2a,msgRepondu:_0x53e68a,arg:_0x2c1208,repondre:_0x244327,nomAuteurMessage:_0x4225fb}=_0x5140e2;if(!_0x53e68a){_0x244327('Please\x20mention\x20an\x20image');return;}if(!_0x53e68a[_0xf03d1f(0xd6)]){_0x244327('The\x20command\x20only\x20works\x20with\x20images');return;};text=_0x2c1208[_0xf03d1f(0x122)]('\x20');if(!text||text===null){_0x244327('Make\x20sure\x20to\x20insert\x20text');return;};const _0x602070=_0x53e68a['imageMessage'],_0x542863=await _0x3cb9cd[_0xf03d1f(0xf2)](_0x602070),_0x537953=new FormData();_0x537953[_0xf03d1f(0xe7)](_0xf03d1f(0x128),fs[_0xf03d1f(0x105)](_0x542863));const _0x306c7e=_0xf03d1f(0xcc),_0x34e85d={'Authorization':_0xf03d1f(0x10f)+_0x306c7e,..._0x537953[_0xf03d1f(0x108)]()},_0x8dd15e={'method':_0xf03d1f(0xe4),'maxBodyLength':Infinity,'url':_0xf03d1f(0xee),'headers':_0x34e85d,'data':_0x537953};try{const _0xec36dc=await axios(_0x8dd15e),_0x525039=_0xec36dc[_0xf03d1f(0xf7)][_0xf03d1f(0xf7)][_0xf03d1f(0xea)];console['log'](_0x525039);const _0x3057a1=_0xf03d1f(0xf8)+text+_0xf03d1f(0x10c)+_0x525039,_0x3d49ab=new Sticker(_0x3057a1,{'pack':_0x4225fb,'author':_0xf03d1f(0x11b),'type':StickerTypes[_0xf03d1f(0x112)],'categories':['🤩','🎉'],'id':_0xf03d1f(0xef),'quality':0x46,'background':_0xf03d1f(0x119)}),_0x1931a4=await _0x3d49ab[_0xf03d1f(0x11f)]();_0x3cb9cd['sendMessage'](_0x170612,{'sticker':_0x1931a4},{'quoted':_0x15bd2a});}catch(_0x51e72e){console[_0xf03d1f(0xeb)](_0xf03d1f(0xe0),_0x51e72e),_0x244327('An\x20error\x20occurred\x20while\x20creating\x20the\x20meme.');}}),adams({'nomCom':_0xfc9ff1(0x115),'categorie':'Conversion','reaction':_0xfc9ff1(0xdb)},async(_0x41afbb,_0x53faee,_0x3c1398)=>{const _0x268bb6=_0xfc9ff1,{ms:_0x417a6d,msgRepondu:_0x316737,arg:_0x464ea8,repondre:_0x3b4fc3,nomAuteurMessage:_0x46457e}=_0x3c1398;if(!_0x316737){_0x3b4fc3(_0x268bb6(0x110));return;};if(!_0x316737[_0x268bb6(0x10a)]){_0x3b4fc3(_0x268bb6(0xd9));return;};let _0x180fff=await _0x53faee[_0x268bb6(0xf2)](_0x316737[_0x268bb6(0x10a)]);const _0x154c2d=_0x42abbb=>{const _0x1762d5=_0x268bb6;return''+Math[_0x1762d5(0xcf)](Math[_0x1762d5(0x10b)]()*0x2710)+_0x42abbb;};let _0x447205=await _0x154c2d(_0x268bb6(0x120));exec(_0x268bb6(0xcd)+_0x180fff+'\x20'+_0x447205,_0x4cbee3=>{const _0x23ec22=_0x268bb6;fs[_0x23ec22(0x106)](_0x180fff);if(_0x4cbee3){_0x53faee[_0x23ec22(0xdc)](_0x41afbb,{'text':'A\x20non-animated\x20sticker\x20please'},{'quoted':_0x417a6d});return;}let _0x6a5c8c=fs[_0x23ec22(0xe6)](_0x447205);_0x53faee[_0x23ec22(0xdc)](_0x41afbb,{'image':_0x6a5c8c},{'quoted':_0x417a6d}),fs[_0x23ec22(0x106)](_0x447205);});}),adams({'nomCom':_0xfc9ff1(0x109),'categorie':_0xfc9ff1(0xdd),'reaction':_0xfc9ff1(0xdb)},async(_0x36a663,_0x588d1a,_0x12d67a)=>{const _0x5845fd=_0xfc9ff1,{msgRepondu:_0x3f9ff1,repondre:_0x4d12d9,arg:_0x4f98ff}=_0x12d67a;if(_0x3f9ff1)try{if(!_0x4f98ff||!_0x4f98ff[0x0]){_0x4d12d9(_0x5845fd(0x126));return;}let _0xddd695=await traduire(_0x3f9ff1['conversation'],{'to':_0x4f98ff[0x0]});_0x4d12d9(_0xddd695);}catch(_0x65463e){_0x4d12d9(_0x5845fd(0xde));}else _0x4d12d9(_0x5845fd(0xde));}); |