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 { exec } from 'node:child_process' | |
| import fs from 'node:fs/promises' | |
| import { promisify } from 'node:util' | |
| const execPromise = promisify(exec) | |
| async function bilibilidl(url, quality = '480P') { | |
| let aid = /\/video\/(\d+)/.exec(url)?.[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' | |
| const umachar = async name => { | |
| const slug = name.trim().replace(/\s+/g, '_') | |
| const url = `https://umamusume.fandom.com/wiki/${slug}` | |
| const { data } = await axios.get(url) | |
| const $ = cheerio.load(data) | |
| const info = {} | |
| const box = $('aside.portable-infobox') |
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" | |
| import fs from "fs/promises" | |
| const FILE = "./chatai.json" | |
| const sleep = ms => new Promise(r => setTimeout(r, ms)) | |
| const models = { | |
| claude: "anthropic/claude-3-haiku", | |
| gpt41mini: "openai/gpt-4.1-mini", |
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 { exec } from 'child_process'; | |
| import { promisify } from 'util'; | |
| import fs from 'fs'; | |
| import https from 'https'; | |
| import path from 'path'; | |
| import { Canvas, loadImage } from 'skia-canvas'; | |
| import { format } from 'date-fns'; | |
| const execAsync = promisify(exec); | |
| const MAX_HISTORY_POINTS = 60; |
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" | |
| const AUTH_ID = "xxx" | |
| const AUTH_KEY = "xxxx" | |
| async function createShortLink(url) { | |
| try { | |
| const res = await axios.post( | |
| "https://api.s.id/v1/links", | |
| { |
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
| async function run(type, url) { | |
| while (true) { | |
| const res = await fetch(`https://youtubedl.siputzx.my.id/download?type=${type}&url=${url}`, { | |
| headers: { "Accept": "application/json, text/plain, */*" } | |
| }) | |
| const data = await res.json() | |
| if (data.status === "completed") { | |
| return "https://youtubedl.siputzx.my.id" + data.fileUrl | |
| } | |
| } |
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 yts from "yt-search" | |
| const CLIENT_ID = "xxx" | |
| const CLIENT_SECRET = "xxx" | |
| const getToken = () => | |
| axios.post( | |
| "https://accounts.spotify.com/api/token", | |
| new URLSearchParams({ grant_type: "client_credentials" }).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" | |
| const CLIENT_ID = "xxx" | |
| const CLIENT_SECRET = "xxx" | |
| const sps = async (q) => { | |
| const body = new URLSearchParams({ grant_type: "client_credentials" }).toString() | |
| const auth = Buffer.from(`${CLIENT_ID}:${CLIENT_SECRET}`).toString("base64") | |
| const token = await axios.post("https://accounts.spotify.com/api/token", body, { | |
| 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
| async function hdvideo(buffer) { | |
| try { | |
| const baseApi = 'https://api.unblurimage.ai' | |
| const productSerial = crypto.randomUUID().replace(/-/g, '') | |
| if (!buffer) throw new Error('Videonya mana') | |
| const sleep = ms => new Promise(r => setTimeout(r, ms)) | |
| async function jsonFetch(url, options = {}) { |
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 * as cheerio from "cheerio" | |
| let handler = async (m, { conn, args, command }) => { | |
| try { | |
| if (!args[0]) return m.reply(`*Example:* .${command} https://vt.tiktok.com/ZS5G3wv8h/`) | |
| m.reply("Wait") | |
| const body = new URLSearchParams({ | |
| q: args[0], |
OlderNewer