rubahlah script javascript berikut ini menjadi code esm var handler = async m textconn = if !text throw apa cuba;try var wtf = await fetchAPIxzn apioploverzdl url text apikey;var fak = await wtfjson;v
const handler = async (m, { text, conn }) => {
if (!text) throw 'apa cuba';
try {
const wtf = await fetch(API('xzn', 'api/oploverzdl', { url: text }, 'apikey'));
const fak = await wtf.json();
let str = Status: ${fak.status}\nTitle: ${fak.next}\n\n;
const a = fak.download;
for (let i = 0; i < a.length; i++) {
str += *Format: ${a[i].format}*\n;
const b = a[i].resolutions;
for (let i = 0; i < b.length; i++) {
str += resolutions: ${b[i].name}\n;
const c = b[i].servers;
for (let i = 0; i < c.length; i++) {
str += servers: ${c[i].name}\n;
str += url: ${c[i].link}\n\n;
}
}
}
m.reply(str);
} catch (e) {
m.reply("mana gada hoax hoax");
}
};
handler.help = handler.command = ['dlanime']; handler.tags = ['anime'];
module.exports = handler;
原文地址: https://www.cveoy.top/t/topic/i98a 著作权归作者所有。请勿转载和采集!