UNPKG

@kelvdra/scraper

Version:

A simple scraper by kelvdra.

44 lines (37 loc) 1.27 kB
import chalk from "chalk" import * as downloader from "./downloader/index.js" import * as stalk from "./stalking/index.js" import * as ai from "./ai/index.js" import * as tools from "./tools/index.js" import * as search from "./search/index.js" console.log(chalk.blueBright(`Hi, thank you for using @kelvdra/scraper ^-^\nTelegram: @draa82\n`)); // Re-export semua fungsi export * from "./downloader/index.js" export * from "./stalking/index.js" export * from "./ai/index.js" export * from "./tools/index.js" export * from "./search/index.js" // ... export lainnya // Gabungin semua fungsi jadi satu object const allFunctions = { ...downloader, ...stalk, ...ai, ...tools, ...search, } // Fungsi list yang bisa dipakai user export async function list() { const commandNames = Object.keys(allFunctions).filter( (key) => typeof allFunctions[key] === "function" ); // filter biar cuma fungsi aja let text = '📄 *Daftar Fitur Tersedia:*\n\n'; commandNames.forEach((cmd, i) => { const formatted = cmd.charAt(0).toUpperCase() + cmd.slice(1); text += `${i + 1}. ${formatted}\n`; }); text += `\nTotal: ${commandNames.length} fitur`; return text; } // Optional: export allFunctions juga kalau user mau akses langsung export { allFunctions }