This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import axios from "axios"; | |
| async function am(url) { | |
| try { | |
| if (!url) throw new Error("URL tidak ditemukan"); | |
| const match = url.match(/\/u\/([^\/]+)\/p\/([^\/\?#]+)/); | |
| if (!match) throw new Error("URL tidak valid"); | |
| const uid = match[1]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import axios from "axios"; | |
| import * as cheerio from "cheerio"; | |
| async function an1Download(link) { | |
| try { | |
| if (!link || !link.includes("an1.com")) { | |
| throw new Error("Salah woylah url nya"); | |
| } | |
| const first = await axios.get(link, { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import axios from "axios"; | |
| import * as cheerio from "cheerio"; | |
| async function an1Detail(link) { | |
| try { | |
| if (!link || !link.includes("an1.com")) { | |
| throw new Error("Link tidak valid"); | |
| } | |
| const { data } = await axios.get(link, { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import axios from "axios"; | |
| import * as cheerio from "cheerio"; | |
| import FormData from "form-data"; | |
| async function appledl(link) { | |
| try { | |
| if (!link || !link.includes("music.apple.com")) { | |
| throw new Error("Link Apple Music tidak valid"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import axios from "axios"; | |
| async function tiktokStalk({ user, limit = 10 } = {}) { | |
| try { | |
| if (!user) throw new Error("Username tidak boleh kosong"); | |
| if (isNaN(limit)) throw new Error("Limit harus angka"); | |
| const profileReq = await axios.post("https://tokviewer.net/api/check-profile", | |
| { username: user }, | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Fitur Screenshot Website | |
| Base : api.lexcode.biz.id | |
| Type : Case | |
| Note : Sesuaikan script dengan bot kamu | |
| */ | |
| case "ssweb": { | |
| if (!text) { | |
| return m.reply("*Masukin link!*\nContoh: .ssweb https://example.com") | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import axios from "axios" | |
| import crypto from "crypto" | |
| async function savetube(link, quality = "720") { | |
| try { | |
| if (!link) throw new Error("Link nya mana?") | |
| const match = link.match(/(?:youtube\.com\/(?:watch\?v=|embed\/|shorts\/|v\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})/) | |
| if (!match) throw new Error("URL YouTube tidak valid") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import axios from "axios"; | |
| import * as cheerio from "cheerio"; | |
| async function tthastag(query) { | |
| try { | |
| if (!query) throw new Error("Query wajib diisi"); | |
| const cleanQuery = query.replace(/[^a-zA-Z0-9]/g, "").toLowerCase(); | |
| const response = await axios.get(`https://tiktokhashtags.com/hashtag/${cleanQuery}/`, { | |
| headers: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import axios from "axios"; | |
| import * as cheerio from "cheerio"; | |
| async function happyModSearch(keyword) { | |
| try { | |
| if (!keyword) throw new Error("Keyword wajib diisi"); | |
| const { data: html } = await axios.post("https://id.happymod.cloud/search.html", | |
| new URLSearchParams({ q: keyword }).toString(), | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import axios from "axios"; | |
| import * as cheerio from "cheerio"; | |
| async function spotifydl(url) { | |
| try { | |
| if (!url) throw new Error("Link nya mana?"); | |
| if (!/open\.spotify\.com/i.test(url)) throw new Error("URL Spotify tidak valid"); | |
| const home = await axios.get("https://spotmate.online/", { | |
| headers: { |
NewerOlder