diff --git a/lib/scraper.js b/lib/scraper.js deleted file mode 100644 index 473b4d8224..0000000000 --- a/lib/scraper.js +++ /dev/null @@ -1,434 +0,0 @@ -function _0xb1c8() { - const _0x36cffd = [ - '3355255jCPXFG', - '9122477wxmJwV', - 'html5player.setVideoHLS\x5c(\x27(.*?)\x27\x5c);', - 'now', - 'filter', - '894960OvSceh', - 'div.user__title\x20>\x20h4', - 'div[class=\x22col-7\x20col-md-auto\x20text-truncate\x22]', - '30188QnesTo', - 'stringify', - 'background-image:\x20url(\x27', - 'error', - 'https://2chat.c3r.ink/', - '20183672omJNpO', - '#html5video\x20>\x20#html5video_base\x20>\x20div\x20>\x20a', - 'parse', - 'https://fdownloader.net/api/ajaxSearch', - 'value', - 'set-cookie', - 'span.video-hd-mark', - 'attr', - 'pop', - 'request', - 'href', - 'div.mozaique\x20>\x20div\x20>\x20div\x20>\x20div.thumb\x20>\x20a', - '\x20views', - '/THUMBNUM/', - 'h1.user', - 'div.user__info-desc', - 'div.thumb-under\x20a', - 'toArray', - 'POST', - 'src', - 'map', - 'application/x-www-form-urlencoded;\x20charset=UTF-8', - 'split', - 'each', - 'https://www.xvideos.com/?k=', - 'div.content\x20>\x20p', - '\x27);', - 'span.rating-bad-nbr', - 'meta[property=\x27og:title\x27]', - 'div.thumb\x20a', - 'username', - 'followers', - '\x22images\x22:', - 'length', - 'https://chatapicn.a3r.fun/api/chat-process', - '213gmskUi', - '&p=', - 'content', - 'replace', - 'find', - 'div.user__img', - 'https://fdownloader.net/', - 'data-src', - 'description', - 'html', - 'load', - 'div#video-tabs\x20>\x20div\x20>\x20div\x20>\x20div\x20>\x20div\x20>\x20strong.mobile-hide', - '749184OPaMpW', - 'title', - 'data', - 'entries', - 'style', - 'div.user__title\x20>\x20a\x20>\x20h1', - 'get', - '/search/', - 'trim', - 'text', - 'match', - 'floor', - '#video-player-bg\x20>\x20script:nth-child(6)', - 'div[class=\x22col-md-auto\x20justify-content-center\x20text-center\x22]\x20>\x20img', - 'random', - 'post', - '1739701oQHsnr', - 'push', - 'div[class=\x22col-auto\x20d-none\x20d-sm-block\x20text-truncate\x22]', - 'div.mozaique', - 'json', - 'script', - ] - _0xb1c8 = function () { - return _0x36cffd - } - return _0xb1c8() -} -;(function (_0x5d0954, _0x79750a) { - const _0x1c320e = _0x24da, - _0x233698 = _0x5d0954() - while (!![]) { - try { - const _0xe942b = - parseInt(_0x1c320e(0x11b)) / 0x1 + - (-parseInt(_0x1c320e(0x129)) / 0x2) * (-parseInt(_0x1c320e(0xff)) / 0x3) + - -parseInt(_0x1c320e(0x10b)) / 0x4 + - -parseInt(_0x1c320e(0x121)) / 0x5 + - parseInt(_0x1c320e(0x126)) / 0x6 + - parseInt(_0x1c320e(0x122)) / 0x7 + - -parseInt(_0x1c320e(0x12e)) / 0x8 - if (_0xe942b === _0x79750a) break - else _0x233698['push'](_0x233698['shift']()) - } catch (_0x460fb0) { - _0x233698['push'](_0x233698['shift']()) - } - } -})(_0xb1c8, 0xd7708) -import _0xf85905 from 'cheerio' -function _0x24da(_0x2e6dae, _0x2d5eab) { - const _0xb1c8b5 = _0xb1c8() - return ( - (_0x24da = function (_0x24da6b, _0x3cec82) { - _0x24da6b = _0x24da6b - 0xfe - let _0x144e24 = _0xb1c8b5[_0x24da6b] - return _0x144e24 - }), - _0x24da(_0x2e6dae, _0x2d5eab) - ) -} -import _0x3e64a6 from 'node-fetch' -import _0x1446b3 from 'axios' -async function sekaikomikDl(_0x281ece) { - const _0x4752aa = _0x24da - let _0x44a26d = await _0x3e64a6(_0x281ece), - _0x25e5f8 = _0xf85905[_0x4752aa(0x109)](await _0x44a26d['text']()), - _0x546e7f = _0x25e5f8(_0x4752aa(0x120)) - [_0x4752aa(0x142)]((_0x597dd9, _0x56d025) => _0x25e5f8(_0x56d025)[_0x4752aa(0x108)]()) - [_0x4752aa(0x13f)]() - return ( - (_0x546e7f = _0x546e7f[_0x4752aa(0x125)](_0x435fb6 => /wp-content/i['test'](_0x435fb6))), - (_0x546e7f = eval(_0x546e7f[0x0]['split'](_0x4752aa(0x14e))[0x1]['split']('}],')[0x0])), - _0x546e7f['map'](_0x426296 => encodeURI(_0x426296)) - ) -} -async function facebookDl(_0x5bfb47) { - const _0xc418ce = _0x24da - let _0x236170 = await _0x3e64a6('https://fdownloader.net/'), - _0x138dbf = _0xf85905[_0xc418ce(0x109)](await _0x236170[_0xc418ce(0x114)]()), - _0x353382 = _0x138dbf('input[name=\x22__RequestVerificationToken\x22]')[_0xc418ce(0x135)]( - _0xc418ce(0x132) - ), - _0x5cd298 = await ( - await _0x3e64a6(_0xc418ce(0x131), { - method: _0xc418ce(0x11a), - headers: { - cookie: _0x236170['headers'][_0xc418ce(0x111)](_0xc418ce(0x133)), - 'content-type': _0xc418ce(0x143), - referer: _0xc418ce(0x105), - }, - body: new URLSearchParams( - Object[_0xc418ce(0x10e)]({ __RequestVerificationToken: _0x353382, q: _0x5bfb47 }) - ), - }) - )[_0xc418ce(0x11f)](), - _0x4376b2 = _0xf85905['load'](_0x5cd298['data']), - _0x4f15ed = {} - return ( - _0x4376b2('.button.is-success.is-small.download-link-fb')[_0xc418ce(0x145)](function () { - const _0x5ccc4c = _0xc418ce - let _0x1e455e = _0x4376b2(this)[_0x5ccc4c(0x135)](_0x5ccc4c(0x10c))['split']('\x20')[0x1], - _0x24048d = _0x4376b2(this)[_0x5ccc4c(0x135)](_0x5ccc4c(0x138)) - if (_0x24048d) _0x4f15ed[_0x1e455e] = _0x24048d - }), - _0x4f15ed - ) -} -async function tiktokStalk(_0x292c3a) { - const _0x2fdbfb = _0x24da - let _0x4a75a7 = await _0x1446b3[_0x2fdbfb(0x111)]('https://urlebird.com/user/' + _0x292c3a + '/'), - _0x43f41b = _0xf85905['load'](_0x4a75a7['data']), - _0x3760e1 = {} - return ( - (_0x3760e1['pp_user'] = _0x43f41b(_0x2fdbfb(0x118))[_0x2fdbfb(0x135)](_0x2fdbfb(0x141))), - (_0x3760e1['name'] = _0x43f41b(_0x2fdbfb(0x13c))[_0x2fdbfb(0x114)]()[_0x2fdbfb(0x113)]()), - (_0x3760e1[_0x2fdbfb(0x14c)] = _0x43f41b('div.content\x20>\x20h5') - ['text']() - [_0x2fdbfb(0x113)]()), - (_0x3760e1[_0x2fdbfb(0x14d)] = _0x43f41b(_0x2fdbfb(0x128)) - [_0x2fdbfb(0x114)]() - [_0x2fdbfb(0x113)]() - [_0x2fdbfb(0x144)]('\x20')[0x1]), - (_0x3760e1['following'] = _0x43f41b(_0x2fdbfb(0x11d)) - [_0x2fdbfb(0x114)]() - ['trim']() - [_0x2fdbfb(0x144)]('\x20')[0x1]), - (_0x3760e1[_0x2fdbfb(0x107)] = _0x43f41b(_0x2fdbfb(0x147))[_0x2fdbfb(0x114)]()['trim']()), - _0x3760e1 - ) -} -async function igStalk(_0x3a0bc2) { - const _0x48d4cb = _0x24da - _0x3a0bc2 = _0x3a0bc2['replace'](/^@/, '') - const _0x2e793d = await ( - await _0x3e64a6('https://dumpor.com/v/' + _0x3a0bc2) - )[_0x48d4cb(0x114)](), - _0xde4576 = _0xf85905['load'](_0x2e793d), - _0x14ff71 = _0xde4576(_0x48d4cb(0x110))[_0x48d4cb(0x114)]()[_0x48d4cb(0x113)](), - _0xc30c04 = _0xde4576(_0x48d4cb(0x127))['text']()['trim'](), - _0x1aca7d = _0xde4576(_0x48d4cb(0x13d))[_0x48d4cb(0x114)]()[_0x48d4cb(0x113)](), - _0x266f9c = _0xde4576(_0x48d4cb(0x104)) - [_0x48d4cb(0x135)](_0x48d4cb(0x10f)) - ?.[_0x48d4cb(0x102)](_0x48d4cb(0x12b), '') - [_0x48d4cb(0x102)](_0x48d4cb(0x148), ''), - _0x460da5 = _0xde4576( - '#user-page\x20>\x20div.container\x20>\x20div\x20>\x20div\x20>\x20div:nth-child(1)\x20>\x20div\x20>\x20a' - ), - _0xebbfc7 = _0x460da5['eq'](0x0) - [_0x48d4cb(0x114)]() - [_0x48d4cb(0x102)](/Posts/i, '') - [_0x48d4cb(0x113)](), - _0x52ad58 = _0x460da5['eq'](0x2) - [_0x48d4cb(0x114)]() - ['replace'](/Followers/i, '') - [_0x48d4cb(0x113)](), - _0x1b6476 = _0x460da5['eq'](0x3) - ['text']() - [_0x48d4cb(0x102)](/Following/i, '') - ['trim'](), - _0x4ecd71 = _0xde4576('ul.list\x20>\x20li.list__item'), - _0x54ee6e = parseInt( - _0x4ecd71['eq'](0x0) - [_0x48d4cb(0x114)]() - [_0x48d4cb(0x102)](/Posts/i, '') - [_0x48d4cb(0x113)]() - [_0x48d4cb(0x102)](/\s/g, '') - ), - _0x39d01b = parseInt( - _0x4ecd71['eq'](0x1) - [_0x48d4cb(0x114)]() - [_0x48d4cb(0x102)](/Followers/i, '') - [_0x48d4cb(0x113)]() - [_0x48d4cb(0x102)](/\s/g, '') - ), - _0xba97c2 = parseInt( - _0x4ecd71['eq'](0x2) - [_0x48d4cb(0x114)]() - [_0x48d4cb(0x102)](/Following/i, '') - [_0x48d4cb(0x113)]() - [_0x48d4cb(0x102)](/\s/g, '') - ) - return { - name: _0x14ff71, - username: _0xc30c04, - description: _0x1aca7d, - postsH: _0xebbfc7, - posts: _0x54ee6e, - followersH: _0x52ad58, - followers: _0x39d01b, - followingH: _0x1b6476, - following: _0xba97c2, - profilePic: _0x266f9c, - } -} -async function xnxxdl(_0x4ced3c) { - const _0x36b936 = _0x24da - try { - const _0x6385f6 = await _0x3e64a6(_0x4ced3c), - _0x570089 = await _0x6385f6[_0x36b936(0x114)](), - _0x58de88 = _0xf85905[_0x36b936(0x109)](_0x570089), - _0x5a205f = _0x58de88(_0x36b936(0x117))['html'](), - _0x4e5a96 = { - low: (_0x5a205f[_0x36b936(0x115)]('html5player.setVideoUrlLow\x5c(\x27(.*?)\x27\x5c);') || - [])[0x1], - high: _0x5a205f[_0x36b936(0x115)]( - 'html5player.setVideoUrlHigh\x5c(\x27(.*?)\x27\x5c);' || [] - )[0x1], - HLS: _0x5a205f[_0x36b936(0x115)](_0x36b936(0x123) || [])[0x1], - } - return _0x4e5a96 - } catch (_0x322bfb) { - return console[_0x36b936(0x12c)](_0x322bfb), null - } -} -async function xnxxSearch(_0x58b8be) { - const _0x16b263 = _0x24da, - _0x5010f7 = 'https://www.xnxx.com', - _0x5f5b5e = await _0x3e64a6( - _0x5010f7 + - _0x16b263(0x112) + - _0x58b8be + - '/' + - (Math[_0x16b263(0x116)](Math[_0x16b263(0x119)]() * 0x3) + 0x1), - { method: 'get' } - ), - _0xf396b = await _0x5f5b5e[_0x16b263(0x114)](), - _0x251c69 = _0xf85905['load'](_0xf396b, { xmlMode: ![] }) - let _0x57c20f = [] - return ( - _0x251c69(_0x16b263(0x11e))['each'](function (_0x50cb8d, _0x5b2ed4) { - const _0x13d61e = _0x16b263, - _0x346297 = _0x251c69(_0x5b2ed4) - [_0x13d61e(0x103)](_0x13d61e(0x14b)) - [_0x13d61e(0x142)]( - (_0x40f1c0, _0x10be25) => - _0x5010f7 + - _0x251c69(_0x10be25) - [_0x13d61e(0x135)](_0x13d61e(0x138)) - [_0x13d61e(0x102)](_0x13d61e(0x13b), '/') - ) - [_0x13d61e(0x111)](), - _0x105025 = _0x251c69(_0x5b2ed4) - [_0x13d61e(0x103)](_0x13d61e(0x13e)) - [_0x13d61e(0x142)]((_0x17dbd9, _0x1d7567) => - _0x251c69(_0x1d7567)['attr'](_0x13d61e(0x10c)) - ) - [_0x13d61e(0x111)]() - for (let _0x215346 = 0x0; _0x215346 < _0x346297[_0x13d61e(0x14f)]; _0x215346++) { - _0x57c20f[_0x13d61e(0x11c)]({ title: _0x105025[_0x215346], link: _0x346297[_0x215346] }) - } - }), - _0x57c20f - ) -} -async function ChatGpt(_0xe20f1f, _0x344017) { - const _0x121947 = _0x24da, - _0x23be9d = { - method: _0x121947(0x140), - headers: { - 'Content-Type': 'application/json', - Referer: _0x121947(0x12d), - accept: 'application/json,\x20text/plain,\x20*/*', - }, - body: JSON[_0x121947(0x12a)]({ - prompt: _0xe20f1f, - options: {}, - regenerate: ![], - roomId: 0x3ea, - uuid: Date[_0x121947(0x124)](), - systemMessage: _0x344017, - top_p: 0x1, - temperature: 0.8, - }), - }, - _0x478037 = await _0x3e64a6(_0x121947(0xfe), _0x23be9d), - _0x1a83a0 = await _0x478037['text']() - let _0x10afe7 = JSON[_0x121947(0x130)](_0x1a83a0[_0x121947(0x144)]('\x0a')[_0x121947(0x136)]()) - return _0x10afe7 -} -async function xvideosSearch(_0x28993e) { - return new Promise(async _0x610d9 => { - const _0x524197 = _0x24da, - _0x2f9041 = await _0x1446b3[_0x524197(0x137)]( - _0x524197(0x146) + - _0x28993e + - _0x524197(0x100) + - (Math[_0x524197(0x116)](Math[_0x524197(0x119)]() * 0x9) + 0x1), - { method: _0x524197(0x111) } - ), - _0x585cba = _0xf85905[_0x524197(0x109)](_0x2f9041[_0x524197(0x10d)], { xmlMode: ![] }), - _0x275f00 = [], - _0x437564 = [], - _0x6d294b = [], - _0x51afd2 = [], - _0x518839 = [], - _0x5d18a0 = [] - _0x585cba('div.mozaique\x20>\x20div\x20>\x20div.thumb-under\x20>\x20p.title')[_0x524197(0x145)]( - function (_0x12af35, _0x1d32eb) { - const _0x3e007c = _0x524197 - _0x275f00[_0x3e007c(0x11c)]( - _0x585cba(this)[_0x3e007c(0x103)]('a')[_0x3e007c(0x135)](_0x3e007c(0x10c)) - ), - _0x437564[_0x3e007c(0x11c)](_0x585cba(this)[_0x3e007c(0x103)]('span.duration')['text']()), - _0x51afd2['push']( - 'https://www.xvideos.com' + _0x585cba(this)['find']('a')[_0x3e007c(0x135)]('href') - ) - } - ), - _0x585cba('div.mozaique\x20>\x20div\x20>\x20div.thumb-under')['each']( - function (_0x10ee54, _0x1189d2) { - const _0x49edd7 = _0x524197 - _0x6d294b[_0x49edd7(0x11c)](_0x585cba(this)[_0x49edd7(0x103)](_0x49edd7(0x134))['text']()) - } - ), - _0x585cba(_0x524197(0x139))[_0x524197(0x145)](function (_0x1f8b18, _0x5a6c0d) { - const _0x33da6c = _0x524197 - _0x518839['push']( - _0x585cba(this)[_0x33da6c(0x103)]('img')[_0x33da6c(0x135)](_0x33da6c(0x106)) - ) - }) - for (let _0x3e4544 = 0x0; _0x3e4544 < _0x275f00[_0x524197(0x14f)]; _0x3e4544++) { - _0x5d18a0['push']({ - title: _0x275f00[_0x3e4544], - duration: _0x437564[_0x3e4544], - quality: _0x6d294b[_0x3e4544], - thumb: _0x518839[_0x3e4544], - url: _0x51afd2[_0x3e4544], - }) - } - _0x610d9(_0x5d18a0) - }) -} -async function xvideosdl(_0x39ce66) { - return new Promise(async _0xe91861 => { - const _0x4a2018 = _0x24da, - _0x375a57 = await _0x3e64a6(_0x39ce66, { method: _0x4a2018(0x111) }), - _0x4ebd5f = await _0x375a57[_0x4a2018(0x114)](), - _0x3e2585 = _0xf85905[_0x4a2018(0x109)](_0x4ebd5f, { xmlMode: ![] }), - _0x47a542 = _0x3e2585(_0x4a2018(0x14a))[_0x4a2018(0x135)](_0x4a2018(0x101)), - _0xd0dfe7 = _0x3e2585('meta[name=\x27keywords\x27]')[_0x4a2018(0x135)](_0x4a2018(0x101)), - _0x404174 = _0x3e2585(_0x4a2018(0x10a))[_0x4a2018(0x114)]() + _0x4a2018(0x13a), - _0x4e685d = _0x3e2585('div.rate-infos\x20>\x20span.rating-total-txt')['text'](), - _0x4799de = _0x3e2585('span.rating-good-nbr')[_0x4a2018(0x114)](), - _0x262293 = _0x3e2585(_0x4a2018(0x149))[_0x4a2018(0x114)](), - _0x1a15c1 = _0x3e2585('meta[property=\x27og:image\x27]')['attr'](_0x4a2018(0x101)), - _0x28b42c = _0x3e2585(_0x4a2018(0x12f))[_0x4a2018(0x135)](_0x4a2018(0x138)) - _0xe91861({ - status: 0xc8, - result: { - title: _0x47a542, - url: _0x28b42c, - keyword: _0xd0dfe7, - views: _0x404174, - vote: _0x4e685d, - likes: _0x4799de, - dislikes: _0x262293, - thumb: _0x1a15c1, - }, - }) - }) -} -export { - sekaikomikDl, - facebookDl, - tiktokStalk, - igStalk, - xnxxdl, - xnxxSearch, - ChatGpt, - xvideosSearch, - xvideosdl, -} diff --git a/package.json b/package.json index d84243f63e..e0e627b027 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "license": "Apache License 2.0", "dependencies": { "@adiwajshing/keyed-db": "^0.2.4", - "@bochilteam/scraper": "^4.0.22-alpha.0", + "@bochilteam/scraper": "^5.0.1", "@google/generative-ai": "0.1.3", "@shineiichijo/marika": "^2.0.6", "@vitalets/google-translate-api": "^9.2.0", @@ -50,7 +50,6 @@ "@xct007/frieren-scraper": "*", "@xct007/tiktok-scraper": "*", "acrcloud": "^1.4.0", - "api-dylux": "^1.6.9", "aptoide-scraper": "^1.0.1", "awesome-phonenumber": "^3.4.0", "axios": "^1.4.0", diff --git a/plugins/dl-facebook.js b/plugins/dl-facebook.js index 00e2799746..03e9998511 100644 --- a/plugins/dl-facebook.js +++ b/plugins/dl-facebook.js @@ -1,8 +1,8 @@ -import fg from 'api-dylux' +import fetch from "node-fetch" const handler = async (m, { conn, args, usedPrefix, command }) => { if (!args[0]) { - throw `✳️ Please send the link of a Facebook video\n\nπŸ“Œ EXAMPLE :\n*${usedPrefix + command}* https://www.facebook.com/Ankursajiyaan/videos/981948876160874/?mibextid=rS40aB7S9Ucbxw6v` + throw `✳️ Please send the link of a Facebook video\n\nπŸ“Œ EXAMPLE :\n*${usedPrefix + command}* https://fb.watch/tXadtHWTjf/?mibextid=lbJOhI7Z2ZfpRMIi` } const urlRegex = @@ -11,16 +11,18 @@ const handler = async (m, { conn, args, usedPrefix, command }) => { throw '⚠️ PLEASE GIVE A VALID URL.' } + let url = `https://api.guruapi.tech/fbvideo?url=${args[0]}` + m.react(rwait) try { - const result = await fg.fbdl(args[0]) + const result = await fetch(url) const tex = ` ⊱ ─── {* GURU FBDL*} ─── ⊰ -↳ *VIDEO TITLE:* ${result.title} +↳ *VIDEO TITLE:* ${result.result.title} ⊱ ────── {⋆♬⋆} ────── ⊰` - const response = await fetch(result.videoUrl) + const response = await fetch(result.result.hd) const arrayBuffer = await response.arrayBuffer() const videoBuffer = Buffer.from(arrayBuffer) diff --git a/plugins/dl-gdrive.js b/plugins/dl-gdrive.js index d6f70904f6..8a443ed557 100644 --- a/plugins/dl-gdrive.js +++ b/plugins/dl-gdrive.js @@ -1,4 +1,4 @@ -import fg from 'api-dylux' +/* import fg from 'api-dylux' let handler = async (m, { conn, args, usedPrefix, command }) => { if (!args[0]) throw `✳️ Enter a Google Drive link` m.react(rwait) @@ -27,4 +27,5 @@ handler.command = ['gdrive'] handler.credit = true handler.premium = true -export default handler +export default handler */ + diff --git a/plugins/dl-play2.js b/plugins/dl-play2.js deleted file mode 100644 index 4141ef733b..0000000000 --- a/plugins/dl-play2.js +++ /dev/null @@ -1,325 +0,0 @@ -const _0x535d47 = _0x31a0 -;(function (_0x1af114, _0xaa2a6d) { - const _0x131e20 = _0x31a0, - _0x160c1b = _0x1af114() - while (!![]) { - try { - const _0x4aaa52 = - -parseInt(_0x131e20(0x1ab)) / 0x1 + - parseInt(_0x131e20(0x1d2)) / 0x2 + - -parseInt(_0x131e20(0x1d9)) / 0x3 + - -parseInt(_0x131e20(0x1aa)) / 0x4 + - (parseInt(_0x131e20(0x1cf)) / 0x5) * (-parseInt(_0x131e20(0x1be)) / 0x6) + - (-parseInt(_0x131e20(0x1d7)) / 0x7) * (-parseInt(_0x131e20(0x1d3)) / 0x8) + - (-parseInt(_0x131e20(0x1ad)) / 0x9) * (-parseInt(_0x131e20(0x1db)) / 0xa) - if (_0x4aaa52 === _0xaa2a6d) break - else _0x160c1b['push'](_0x160c1b['shift']()) - } catch (_0x1fad3d) { - _0x160c1b['push'](_0x160c1b['shift']()) - } - } -})(_0x2138, 0x4ea6a) -import _0x13a052 from 'node-fetch' -import _0x3a08bf from 'yt-search' -import _0x2aa4cb from 'ytdl-core' -function _0x31a0(_0x5ee4e3, _0x2c0804) { - const _0x2138c4 = _0x2138() - return ( - (_0x31a0 = function (_0x31a07a, _0x244a55) { - _0x31a07a = _0x31a07a - 0x1a0 - let _0x50b676 = _0x2138c4[_0x31a07a] - return _0x50b676 - }), - _0x31a0(_0x5ee4e3, _0x2c0804) - ) -} -import _0x1fb66b from 'axios' -let handler = async (_0x4e07eb, { command: _0x65cea5, conn: _0x1c49ef, text: _0x55e557 }) => { - const _0x49a280 = _0x31a0 - if (!_0x55e557) throw _0x49a280(0x1d0) - try { - if (_0x65cea5 === _0x49a280(0x1af)) { - _0x1c49ef[_0x49a280(0x1a1)](_0x4e07eb['chat'], '*_sending\x20your\x20audio..._*', _0x4e07eb) - try { - let _0x92eb01 = await _0x13a052( - _0x49a280(0x1a8) + lolkeysapi + _0x49a280(0x1d5) + _0x55e557 - ), - _0x5f16fe = await _0x92eb01[_0x49a280(0x1a5)](), - _0x5394aa = await _0x1c49ef[_0x49a280(0x1cd)]( - _0x4e07eb[_0x49a280(0x1b6)], - { - audio: { url: _0x5f16fe[_0x49a280(0x1b5)][_0x49a280(0x1bf)] }, - fileName: _0x49a280(0x1a6), - mimetype: _0x49a280(0x1ce), - }, - { quoted: _0x4e07eb } - ) - if (!_0x5394aa) - return await _0x1c49ef[_0x49a280(0x1b3)]( - _0x4e07eb[_0x49a280(0x1b6)], - _0x5f16fe[_0x49a280(0x1b5)][_0x49a280(0x1bf)], - _0x49a280(0x1a6), - null, - _0x4e07eb, - ![], - { mimetype: _0x49a280(0x1ce) } - ) - } catch { - let _0x4f6b15 = await ytPlay(_0x55e557), - _0x4db2eb = - _0x4f6b15[_0x49a280(0x1c5)][0x0][_0x49a280(0x1bf)] || - _0x4f6b15['result2'][0x1][_0x49a280(0x1bf)] || - _0x4f6b15[_0x49a280(0x1c5)][0x2][_0x49a280(0x1bf)] || - _0x4f6b15[_0x49a280(0x1c5)] - _0x1c49ef[_0x49a280(0x1cd)]( - _0x4e07eb[_0x49a280(0x1b6)], - { audio: { url: _0x4db2eb }, fileName: _0x49a280(0x1a6), mimetype: _0x49a280(0x1ce) }, - { quoted: _0x4e07eb } - ) - } - } - if (_0x65cea5 === _0x49a280(0x1d6)) { - _0x1c49ef[_0x49a280(0x1a1)]( - _0x4e07eb[_0x49a280(0x1b6)], - '*_⏳Processing\x20your\x20video...⏳_*', - _0x4e07eb - ) - try { - let _0x1c3220 = await ytPlayVid(_0x55e557) - await _0x1c49ef[_0x49a280(0x1cd)]( - _0x4e07eb[_0x49a280(0x1b6)], - { - video: { url: _0x1c3220[_0x49a280(0x1b5)] }, - fileName: 'error.mp4', - caption: _0x49a280(0x1a4), - thumbnail: _0x1c3220[_0x49a280(0x1a7)], - mimetype: _0x49a280(0x1ca), - }, - { quoted: _0x4e07eb } - ) - } catch { - let _0x442e2b = await _0x13a052( - _0x49a280(0x1a8) + lolkeysapi + _0x49a280(0x1d5) + _0x55e557 - ), - _0x290c76 = await _0x442e2b['json']() - await _0x1c49ef[_0x49a280(0x1b3)]( - _0x4e07eb['chat'], - _0x290c76[_0x49a280(0x1b5)][_0x49a280(0x1c7)], - _0x49a280(0x1c8), - _0x49a280(0x1a4), - _0x4e07eb - ) - } - } - } catch (_0x4c92b9) { - _0x4e07eb['reply']('*Error\x20occurred,\x20please\x20try\x20again\x20later.*') - } -} -;(handler['help'] = [_0x535d47(0x1af), _0x535d47(0x1d6)][_0x535d47(0x1a9)]( - _0x216473 => _0x216473 + _0x535d47(0x1b0) -)), - (handler['tags'] = [_0x535d47(0x1c4)]), - (handler[_0x535d47(0x1cc)] = [_0x535d47(0x1af), 'playvid']) -export default handler -function bytesToSize(_0x5d0ed1) { - return new Promise((_0x4a5d71, _0x5d15b2) => { - const _0x1410fa = _0x31a0, - _0x532408 = ['Bytes', 'KB', 'MB', 'GB', 'TB'] - if (_0x5d0ed1 === 0x0) return 'n/a' - const _0x7a9eec = parseInt( - Math[_0x1410fa(0x1a3)](Math[_0x1410fa(0x1a2)](_0x5d0ed1) / Math[_0x1410fa(0x1a2)](0x400)), - 0xa - ) - if (_0x7a9eec === 0x0) _0x4a5d71(_0x5d0ed1 + '\x20' + _0x532408[_0x7a9eec]) - _0x4a5d71( - (_0x5d0ed1 / 0x400 ** _0x7a9eec)[_0x1410fa(0x1bd)](0x1) + '\x20' + _0x532408[_0x7a9eec] - ) - }) -} -async function ytMp3(_0x904bcc) { - return new Promise((_0x425196, _0x5a183d) => { - const _0x1d14e9 = _0x31a0 - _0x2aa4cb['getInfo'](_0x904bcc) - [_0x1d14e9(0x1a0)](async _0x3176ce => { - const _0x5e7d34 = _0x1d14e9 - let _0x2de57e = [] - for (let _0xc30f62 = 0x0; _0xc30f62 < _0x3176ce['formats'][_0x5e7d34(0x1dd)]; _0xc30f62++) { - let _0x55bbd0 = _0x3176ce[_0x5e7d34(0x1c0)][_0xc30f62] - if (_0x55bbd0[_0x5e7d34(0x1ac)] === _0x5e7d34(0x1d8)) { - let { contentLength: _0x549698 } = _0x55bbd0, - _0x165332 = await bytesToSize(_0x549698) - _0x2de57e[_0xc30f62] = { audio: _0x55bbd0[_0x5e7d34(0x1cb)], size: _0x165332 } - } - } - let _0x4676f1 = _0x2de57e['filter']( - _0x27a1a5 => - _0x27a1a5[_0x5e7d34(0x1bf)] !== undefined && _0x27a1a5['size'] !== undefined - ), - _0x2ff9b7 = await _0x1fb66b[_0x5e7d34(0x1ae)]( - 'https://tinyurl.com/api-create.php?url=' + _0x4676f1[0x0][_0x5e7d34(0x1bf)] - ), - _0x565ab5 = _0x2ff9b7[_0x5e7d34(0x1d1)], - _0x47309c = _0x3176ce[_0x5e7d34(0x1dc)][_0x5e7d34(0x1c6)], - _0x2170cc = - _0x3176ce[_0x5e7d34(0x1c3)][_0x5e7d34(0x1da)][_0x5e7d34(0x1c1)]['thumbnail'][ - _0x5e7d34(0x1c2) - ][0x0]['url'] - _0x425196({ title: _0x47309c, result: _0x565ab5, result2: _0x4676f1, thumb: _0x2170cc }) - }) - [_0x1d14e9(0x1b2)](_0x5a183d) - }) -} -function _0x2138() { - const _0x540e33 = [ - 'downloader', - 'result2', - 'title', - 'video', - 'error.mp4', - 'container', - 'video/mp4', - 'url', - 'command', - 'sendMessage', - 'audio/mp4', - '35ZSbUGZ', - 'No\x20text\x20to\x20search,\x20please\x20enter\x20the\x20name\x20of\x20the\x20song\x20you\x20want\x20to\x20play.\x0a\x0a*EXAMPLE:\x0a#play2\x20\x20-\x20Hope\x20xxxtentacion*', - 'data', - '273574GnjUPa', - '8BKdupn', - 'size', - '&query=', - 'playvid', - '1524292lkQCBp', - 'audio/webm;\x20codecs=\x22opus\x22', - '1917840YAEpUq', - 'microformat', - '10317710brWhPh', - 'videoDetails', - 'length', - 'then', - 'reply', - 'log', - 'floor', - '_𝑇𝛨𝛯\x20πΊπ‘ˆπ‘…π‘ˆ\x20𝐡𝛩𝑇_', - 'json', - 'error.mp3', - 'thumb', - 'https://api.lolhuman.xyz/api/ytplay2?apikey=', - 'map', - '1405484gMPNaL', - '466677VfxugO', - 'mimeType', - '18CjNDQj', - 'get', - 'play2', - '\x20', - 'videos', - 'catch', - 'sendFile', - 'getInfo', - 'result', - 'chat', - 'quality', - 'push', - 'thumbnail', - 'mp4', - 'hasVideo', - 'slice', - 'toFixed', - '547374mhmgDH', - 'audio', - 'formats', - 'playerMicroformatRenderer', - 'thumbnails', - 'player_response', - ] - _0x2138 = function () { - return _0x540e33 - } - return _0x2138() -} -async function ytMp4(_0x453da5) { - return new Promise(async (_0x232ab3, _0x34c604) => { - const _0x5eea84 = _0x31a0 - _0x2aa4cb[_0x5eea84(0x1b4)](_0x453da5) - [_0x5eea84(0x1a0)](async _0x10b367 => { - const _0x4347e4 = _0x5eea84 - let _0x376fb6 = [] - for (let _0xb2a5ef = 0x0; _0xb2a5ef < _0x10b367[_0x4347e4(0x1c0)]['length']; _0xb2a5ef++) { - let _0x1acb02 = _0x10b367['formats'][_0xb2a5ef] - if ( - _0x1acb02[_0x4347e4(0x1c9)] === _0x4347e4(0x1ba) && - _0x1acb02[_0x4347e4(0x1bb)] === !![] && - _0x1acb02['hasAudio'] === !![] - ) { - let { qualityLabel: _0x65ebba, contentLength: _0x5ad987 } = _0x1acb02, - _0x1f5669 = await bytesToSize(_0x5ad987) - _0x376fb6[_0xb2a5ef] = { - video: _0x1acb02[_0x4347e4(0x1cb)], - quality: _0x65ebba, - size: _0x1f5669, - } - } - } - let _0x5f47d9 = _0x376fb6['filter']( - _0x68260 => - _0x68260[_0x4347e4(0x1c7)] !== undefined && - _0x68260[_0x4347e4(0x1d4)] !== undefined && - _0x68260[_0x4347e4(0x1b7)] !== undefined - ), - _0x187b56 = await _0x1fb66b['get']( - 'https://tinyurl.com/api-create.php?url=' + _0x5f47d9[0x0]['video'] - ), - _0x51c6d0 = _0x187b56[_0x4347e4(0x1d1)], - _0x1d2200 = _0x10b367[_0x4347e4(0x1dc)][_0x4347e4(0x1c6)], - _0x1de4d0 = - _0x10b367['player_response']['microformat']['playerMicroformatRenderer'][ - _0x4347e4(0x1b9) - ][_0x4347e4(0x1c2)][0x0][_0x4347e4(0x1cb)] - _0x232ab3({ - title: _0x1d2200, - result: _0x51c6d0, - rersult2: _0x5f47d9[0x0]['video'], - thumb: _0x1de4d0, - }) - }) - ['catch'](_0x34c604) - }) -} -async function ytPlay(_0x59f37b) { - return new Promise((_0x3e3e35, _0x14e4e0) => { - const _0xd709cc = _0x31a0 - _0x3a08bf(_0x59f37b) - [_0xd709cc(0x1a0)](async _0x333de7 => { - const _0x15e4f1 = _0xd709cc - let _0x258876 = _0x333de7[_0x15e4f1(0x1b1)][_0x15e4f1(0x1bc)](0x0, 0x5), - _0x1cacf4 = [] - for (let _0x1ef4d7 = 0x0; _0x1ef4d7 < _0x258876[_0x15e4f1(0x1dd)]; _0x1ef4d7++) { - _0x1cacf4['push'](_0x258876[_0x1ef4d7][_0x15e4f1(0x1cb)]) - } - let _0x47db9a = _0x1cacf4[0x0], - _0x24972d = await ytMp3(_0x47db9a) - _0x3e3e35(_0x24972d) - }) - [_0xd709cc(0x1b2)](_0x14e4e0) - }) -} -async function ytPlayVid(_0x42b669) { - return new Promise((_0x24ed78, _0x4c3fcb) => { - const _0x1d4574 = _0x31a0 - _0x3a08bf(_0x42b669) - [_0x1d4574(0x1a0)](async _0x1c378c => { - const _0x233984 = _0x1d4574 - let _0x8f8674 = _0x1c378c[_0x233984(0x1b1)]['slice'](0x0, 0x5), - _0x15db92 = [] - for (let _0x57fec6 = 0x0; _0x57fec6 < _0x8f8674['length']; _0x57fec6++) { - _0x15db92[_0x233984(0x1b8)](_0x8f8674[_0x57fec6][_0x233984(0x1cb)]) - } - let _0x73ca6 = _0x15db92[0x0], - _0x3dd3e9 = await ytMp4(_0x73ca6) - _0x24ed78(_0x3dd3e9) - }) - ['catch'](_0x4c3fcb) - }) -} diff --git a/plugins/dl-tiktok.js b/plugins/dl-tiktok.js deleted file mode 100644 index eb65ae77a9..0000000000 --- a/plugins/dl-tiktok.js +++ /dev/null @@ -1,42 +0,0 @@ -import { tiktokdl } from '@bochilteam/scraper' -import fg from 'api-dylux' - -let handler = async (m, { conn, text, args, usedPrefix, command }) => { - if (!args[0] && m.quoted && m.quoted.text) { - args[0] = m.quoted.text - } - if (!args[0] && !m.quoted) throw `Give the link of the video Tiktok or quote a tiktok link` - if (!args[0].match(/tiktok/gi)) throw `Verify that the link is from TikTok` - - let txt = 'Here your Requested video' - - try { - const { - author: { nickname }, - video, - description, - } = await tiktokdl(args[0]) - const url = - video.no_watermark2 || - video.no_watermark || - 'https://tikcdn.net' + video.no_watermark_raw || - video.no_watermark_hd - - if (!url) throw global.error - - conn.sendFile(m.chat, url, 'tiktok.mp4', '', m) - } catch (err) { - try { - let p = await fg.tiktok(args[0]) - conn.sendFile(m.chat, p.play, 'tiktok.mp4', txt, m) - } catch { - m.reply('*An unexpected error occurred*') - } - } -} - -handler.help = ['tiktok'].map(v => v + ' ') -handler.tags = ['downloader'] -handler.command = /^t(t|iktok(d(own(load(er)?)?|l))?|td(own(load(er)?)?|l))$/i - -export default handler diff --git a/plugins/dl-tiktokstalk.js b/plugins/dl-tiktokstalk.js deleted file mode 100644 index d61a9e02ca..0000000000 --- a/plugins/dl-tiktokstalk.js +++ /dev/null @@ -1,21 +0,0 @@ -import fg from 'api-dylux' -let handler = async (m, { conn, text, args }) => { - if (!text) throw `✳️Enter the Username of a TikTok user ` - let res = await fg.ttStalk(args[0]) - let txt = ` -β”Œβ”€β”€γ€Œ *TIKTOK STALK* -β–’ *πŸ”–Number:* ${res.name} -β–’ *πŸ”–Username:* ${res.username} -β–’ *πŸ‘₯followers:* ${res.followers} -β–’ *πŸ«‚following:* ${res.following} -β–’ *πŸ“ŒDesc:* ${res.desc} - -β–’ *πŸ”— Link* : https://tiktok.com/${res.username} -└────────────` - await conn.sendFile(m.chat, res.profile, 'tt.png', txt, m) -} -handler.help = ['tiktokstalk'] -handler.tags = ['downloader'] -handler.command = /^t(tstalk|iktokstalk)$/i - -export default handler diff --git a/plugins/owner-logout.js b/plugins/owner-logout.js index 0c455e2b7d..e1822a9aef 100644 --- a/plugins/owner-logout.js +++ b/plugins/owner-logout.js @@ -87,7 +87,7 @@ const _0x206d10 = _0x4d0c } } })(_0x4424, 0x5f812) -import _0x105305 from 'cheerio' +import * as cheerio from 'cheerio' import _0x44a3b3 from 'axios' import _0x45d267 from 'util' let handler = async ( @@ -106,7 +106,7 @@ let handler = async ( let _0x16a5c7 = await _0x44a3b3[_0x2c1f13(0xac)]('https://www.whatsapp.com/contact/noclient/'), _0x427b3b = await _0x44a3b3[_0x2c1f13(0xac)](_0x2c1f13(0x9f)), _0x1d5e3f = _0x16a5c7[_0x2c1f13(0x95)][_0x2c1f13(0xaf)][_0x2c1f13(0xae)](';\x20'), - _0x183702 = _0x105305[_0x2c1f13(0x87)](_0x16a5c7[_0x2c1f13(0x89)]), + _0x183702 = cheerio[_0x2c1f13(0x87)](_0x16a5c7[_0x2c1f13(0x89)]), _0x59e950 = _0x183702(_0x2c1f13(0xad)), _0x3b484c = new URL(_0x59e950[_0x2c1f13(0x8b)]('action'), _0x2c1f13(0xa8))[_0x2c1f13(0x8f)], _0x1fd9e2 = new URLSearchParams() diff --git a/plugins/sticker-getsticker.js b/plugins/sticker-getsticker.js index e53bc98529..c3d4b3e152 100644 --- a/plugins/sticker-getsticker.js +++ b/plugins/sticker-getsticker.js @@ -1,4 +1,4 @@ -import fg from 'api-dylux' +/* import fg from 'api-dylux' import fetch from 'node-fetch' import { sticker } from '../lib/sticker.js' let handler = async (m, { conn, args, text, usedPrefix, command }) => { @@ -9,7 +9,7 @@ let handler = async (m, { conn, args, text, usedPrefix, command }) => { try { /*let res = await fetch(global.API('fgmods', '/api/getsticker', { q:text }, 'apikey')) let json = await res.json()*/ - let json = await fg.StickerSearch(text) + /* let json = await fg.StickerSearch(text) m.reply(` βœ… Result @@ -32,4 +32,4 @@ handler.diamond = false export default handler -const delay = time => new Promise(res => setTimeout(res, time)) +const delay = time => new Promise(res => setTimeout(res, time)) */ diff --git a/plugins/tools-wikipedia.js b/plugins/tools-wikipedia.js index 4709031134..d645a615d0 100644 --- a/plugins/tools-wikipedia.js +++ b/plugins/tools-wikipedia.js @@ -1,5 +1,5 @@ import axios from 'axios' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' let handler = async (m, { text }) => { if (!text) throw `✳️ Enter what you want to search for on Wikipedia` diff --git a/plugins/xvid.js b/plugins/xvid.js index 49ffeb74f1..6cbd21fac8 100644 --- a/plugins/xvid.js +++ b/plugins/xvid.js @@ -1,4 +1,4 @@ -import { xvideosSearch, xvideosdl } from '../lib/scraper.js' +/* import { xvideosSearch, xvideosdl } from '../lib/scraper.js' let handler = async (m, { conn, args, text, usedPrefix, command }) => { let chat = global.db.data.chats[m.chat] @@ -61,4 +61,4 @@ handler.register = true handler.premium = false -export default handler +export default handler */ diff --git a/plugins/xxdl.js b/plugins/xxdl.js index 4f56b46b48..36208f0aab 100644 --- a/plugins/xxdl.js +++ b/plugins/xxdl.js @@ -1,4 +1,4 @@ -import { xnxxSearch, xnxxdl } from '../lib/scraper.js' +/* import { xnxxSearch, xnxxdl } from '../lib/scraper.js' let handler = async (m, { conn, args, text, usedPrefix, command }) => { let chat = global.db.data.chats[m.chat] @@ -58,4 +58,4 @@ handler.group = true handler.premium = false handler.register = true -export default handler +export default handler */