Skip to content

Instantly share code, notes, and snippets.

View ayashiiiyo's full-sized avatar
🎯
Focusing

Abella || Beginner ayashiiiyo

🎯
Focusing
View GitHub Profile
let handler = async (m, { args, command }) => {
try {
if (!args[0]) return m.reply(`*Example :* .${command} https://sfl.gl/xxxxx`)
m.reply(global.wait)
m.reply(
(
await (
await fetch(`https://anabot.my.id/api/tools/izenLOL?url=${encodeURIComponent(args[0])}&apikey=freeApikey`)
let handler = async (m, { conn, args, command }) => {
try {
if (!args[0]) return m.reply(`*Example :* .${command} https://open.spotify.com/track/7jvwORp293fGCP6KfmE8aQ`)
m.reply(global.wait)
let { data } = await (await fetch(`https://fgsi.dpdns.org/api/downloader/spotify?apikey=APIKEY_KAMU&url=${encodeURIComponent(args[0])}`)).json()
await conn.sendMessage(m.chat, {
image: {
const instagram = async (
url = 'Link_IG'
) => {
try {
const ua =
'Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X) AppleWebKit/537.36 (KHTML, like Gecko) CriOS/135.0.7049.83 Mobile/15E148 Safari/604.1'
const page = await fetch(
'https://staging.zeawin.com/NullGram/',
{
const headers = {
'accept': '*/*',
'content-type': 'application/x-www-form-urlencoded; charset=UTF-8',
'origin': 'https://snapinsta.to',
'referer': 'https://snapinsta.to/en/instagram-photo-downloader',
'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X) AppleWebKit/537.36 (KHTML, like Gecko) CriOS/135.0.7049.83 Mobile/15E148 Safari/604.1',
'x-requested-with': 'XMLHttpRequest'
}
const proxy = url => `https://cors.siputzx.my.id/${url}`
let handler = async (m, { text, command }) => {
try {
if (!text) return m.reply(`*Example :* .${command} Halo`)
m.reply(global.wait)
let res = await fetch(`https://fgsi.dpdns.org/api/ai/zai?apikey=APIKEY_MU&text=${encodeURIComponent(text)}`)
let json = await res.json()
m.reply(json.data.answer)
import * as cheerio from 'cheerio'
let handler = async (m, { conn, args, command }) => {
try {
if (!args || !args[0]) return m.reply(`*Example :* .${command} arial`)
m.reply(global.wait)
let q = args.join(' ')
let url = 'https://www.dafont.com/search.php?q=' + encodeURIComponent(q)
let handler = async (m, { command, text, conn }) => {
try {
if (!text) return m.reply(`*Example :* .${command} Apa itu AI`)
m.reply(global.wait)
let cmd = command
let web = false
let image = false
let deep = false
import { Canvas, loadImage, FontLibrary } from 'skia-canvas'
import fs from 'fs'
async function ensureFile(url, path) {
if (!fs.existsSync(path)) {
const res = await fetch(url)
const buf = Buffer.from(await res.arrayBuffer())
fs.writeFileSync(path, buf)
}
}
import crypto from 'crypto'
import { fileTypeFromBuffer } from 'file-type'
async function mathgpt({ question, think = false, image = null } = {}) {
try {
if (!question) throw new Error('Question is required.')
const ip = [10, crypto.randomInt(256), crypto.randomInt(256), crypto.randomInt(256)].join('.')
const headers = {
import { Canvas, loadImage, FontLibrary } from 'skia-canvas'
import fs from 'fs'
import path from 'path'
const base = '../ba-logo'
const fontDir = path.join(base, 'fonts')
const assetDir = path.join(base, 'assets')
if (!fs.existsSync(base)) fs.mkdirSync(base)
if (!fs.existsSync(fontDir)) fs.mkdirSync(fontDir)