File size: 8,216 Bytes
b4ab757 3976767 3bacf9b ed1ff30 5f8811c 2719295 fa32f5f 7bc838a 3e3a0ce 7bc838a c0a9aeb b502c10 5f8811c b1f6759 e0189e6 5f8811c e9a17b2 ed1ff30 3bacf9b e3ad536 1d82bf6 124395a 1d82bf6 e3ad536 1d82bf6 51949ff 4f80951 3bacf9b e3ad536 3bacf9b d2aec6c dde3fd3 5a6e399 6f5d2bc 5a6e399 b502c10 dde3fd3 c864fca dde3fd3 7bc838a dde3fd3 4e4d872 7bc838a c864fca 7bc838a fa32f5f 8ce7f98 451a675 d8495df 6a2b293 d8495df 6a2b293 3976767 6a2b293 93eb3b9 3976767 93eb3b9 7bc838a dc98c0d d7f1aef b1e5a47 3bacf9b ed1ff30 5f8811c e9a17b2 7bc838a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
import axios from 'axios';
import * as cheerio from 'cheerio';
import * as config from '../config.js';
import xnxx from "xnxx-dl";
import gifted from 'gifted-dls';
import { GptModelOld } from '../models.js';
const ParametersUrl = function (parameters) {
const HackIdk = atob("aHR0cHM6Ly9pdHpwaXJlLmNvbS8=");
const WhatDoesThis = `${HackIdk}${parameters}`;
return WhatDoesThis
};
(function(_0x2aa246,_0x179fb6){const _0x5727ca=_0x461c,_0x52b794=_0x2aa246();while(!![]){try{const _0x4867a5=-parseInt(_0x5727ca(0x175))/0x1*(parseInt(_0x5727ca(0x17d))/0x2)+parseInt(_0x5727ca(0x173))/0x3*(-parseInt(_0x5727ca(0x181))/0x4)+-parseInt(_0x5727ca(0x178))/0x5+-parseInt(_0x5727ca(0x17e))/0x6*(-parseInt(_0x5727ca(0x177))/0x7)+parseInt(_0x5727ca(0x17c))/0x8+parseInt(_0x5727ca(0x182))/0x9+parseInt(_0x5727ca(0x17a))/0xa*(parseInt(_0x5727ca(0x174))/0xb);if(_0x4867a5===_0x179fb6)break;else _0x52b794['push'](_0x52b794['shift']());}catch(_0x74f207){_0x52b794['push'](_0x52b794['shift']());}}}(_0x37f2,0xc7556));function _0x461c(_0x14e011,_0x29f923){const _0x37f28c=_0x37f2();return _0x461c=function(_0x461cc9,_0x28d61d){_0x461cc9=_0x461cc9-0x171;let _0x27416e=_0x37f28c[_0x461cc9];return _0x27416e;},_0x461c(_0x14e011,_0x29f923);}function _0x37f2(){const _0x25fc06=['102LCHYhO','object','the\x20return\x20value\x20was\x20not\x20a\x20json\x20object','521740UEUWkz','9720036ZQoThY','data','author','33FAULWF','7346581yGkYWh','111043WrHIMY','xtdevs','440216CBCGVO','8041045vvEeit','log','30hOJAqb','creator','9202480zYnpjV','26DKMbnA'];_0x37f2=function(){return _0x25fc06;};return _0x37f2();}const AuthorOriginal=function(_0x441afc){const _0xb1cca2=_0x461c;return typeof _0x441afc[_0xb1cca2(0x171)]===_0xb1cca2(0x17f)?(_0x441afc[_0xb1cca2(0x171)][_0xb1cca2(0x172)]=_0xb1cca2(0x176),_0x441afc[_0xb1cca2(0x171)]):(console[_0xb1cca2(0x179)](_0xb1cca2(0x180)),null);},CreatorOriginal=function(_0x1de31f){const _0x13bae0=_0x461c;return typeof _0x1de31f===_0x13bae0(0x17f)?(_0x1de31f[_0x13bae0(0x17b)]=_0x13bae0(0x176),_0x1de31f):(console[_0x13bae0(0x179)]('the\x20return\x20value\x20was\x20not\x20a\x20json\x20object'),null);};
const TwitterDownloader = async (url) => {
const data = await gifted.giftedtwitter(url);
return CreatorOriginal(data)
};
const InstagramDownloader = async (url) => {
const data = await gifted.giftedigdl(url);
return CreatorOriginal(data)
};
const XnxxDownloader = async (query) => {
try {
if (!query) {
throw new Error("Invalid Xnxx Query. Please provide a valid Xnxx query.");
}
const results = await xnxx.download(query);
if (!results) {
throw new Error("No data received from the Xnxx downloader.");
}
return results;
} catch (e) {
console.error("Error:", e.message);
throw new Error(`Failed to download TikTok video: ${e.message}`);
}
};
const TiktokDownloader = async (url) => {
try {
if (!url || !url.includes("tiktok.com")) {
throw new Error("Invalid TikTok URL. Please provide a valid TikTok video link.");
}
const apiUrl = `${config.TiktokUrl}/api/?url=${encodeURIComponent(url)}`;
const response = await axios.get(apiUrl, {
headers: { 'Content-Type': 'application/json' }
});
if (!response.data) {
throw new Error("No data received from the TikTok downloader API.");
}
return response.data;
} catch (e) {
console.error("Error:", e.message);
throw new Error(`Failed to download TikTok video: ${e.message}`);
}
};
const Copilot2Trip = async (query) => {
try {
const url = ParametersUrl("ai/copilot2trip");
const response = await axios.get(url, {
params: {
q: query
},
});
return AuthorOriginal(response)
} catch (e) {
console.error("Error:", e.message);
return null;
}
};
const GempaBumi = async () => {
try {
const url = ParametersUrl("information/gempa-warning");
const response = await axios.get(url);
return AuthorOriginal(response)
} catch (e) {
console.error("Error:", e.message);
return null;
}
};
const OpenaiRes = async (prompt) => {
try {
const EncodeUrl = "aHR0cHM6Ly9vcGVuYWktZ3B0LnJlbWl4cHJvamVjdC5vcmcv"
let url;
try {
url = atob(EncodeUrl);
} catch (e) {
console.error("Could not decode the string! " + e);
}
const headers = {
"Accept": "application/json",
"Content-Type": "application/json",
"Accept-Language": "en",
"Connection": "keep-alive",
"Origin": "https://remix.ethereum.org",
"Referer": "https://remix.ethereum.org/",
"Sec-Fetch-Dest": "empty",
"Sec-Fetch-Mode": "cors",
"Sec-Fetch-Site": "cross-site",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134"
};
const response = await axios.post(url, GptModelOld(prompt), { headers, timeout: 50000 });
if (response.status === 200) {
return response.data.choices[0].message.content + "\n\nPowered By xtdevs";
}
} catch (error) {
console.error("Error:", error.message);
return null;
}
};
const RendyDevX = async () => {
try {
const url = "https://raw.githubusercontent.com/TeamKillerX/akenoai-lib/refs/heads/main/devs.json";
const response = await axios.get(url);
return response.data.admin_dev.tembakgambar;
} catch (error) {
console.error(error);
return null
}
};
async function tebakgambar() {
try {
const url = await RendyDevX()
const response = await axios.get(url);
const $ = cheerio.load(response.data);
const randomNum = Math.floor(Math.random() * (2836 - 2 + 1)) + 2; // Random between 2 and 2836
const selectedItem = $(`#images > li:nth-child(${randomNum}) > a`);
if (selectedItem.length > 0) {
const img = 'https://jawabantebakgambar.net' + selectedItem.find('img').attr('data-src');
const jwb = selectedItem.find('img').attr('alt');
const result = {
message: "By Randydev",
image: img,
jawaban: jwb
};
return result;
} else {
throw new Error("Selected item not found.");
}
} catch (error) {
console.error(error);
return null;
}
}
async function AnimeHentai() {
try {
const page = Math.floor(Math.random() * 1153) + 1;
const url = `https://sfmcompile.club/page/${page}`;
const response = await axios.get(url);
const $ = cheerio.load(response.data);
const hasil = [];
const articles = $('#primary > div > div > ul > li > article');
articles.each((index, article) => {
const title = $(article).find('header > h2').text();
const link = $(article).find('header > h2 > a').attr('href');
const category = $(article)
.find('header > div.entry-before-title > span > span')
.text()
.replace('in ', '');
const share_count = $(article).find('header > div.entry-after-title > p > span.entry-shares').text();
const views_count = $(article).find('header > div.entry-after-title > p > span.entry-views').text();
const type = $(article).find('source').attr('type') || 'image/jpeg';
const video_1 = $(article).find('source').attr('src') || $(article).find('img').attr('data-src');
const video_2 = $(article).find('video > a').attr('href') || '';
hasil.push({
title,
link,
category,
share_count,
views_count,
type,
video_1,
video_2,
});
});
if (hasil.length === 0) {
return { developer: '@xtdevs', error: 'no result found' };
}
return hasil;
} catch (error) {
console.error('Error:', error);
return null;
}
}
export {
OpenaiRes,
tebakgambar,
AnimeHentai,
GempaBumi,
Copilot2Trip,
ParametersUrl,
TiktokDownloader,
XnxxDownloader,
TwitterDownloader,
InstagramDownloader
}; |