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
| const axios = require('axios'); | |
| class TrakteerAPI { | |
| constructor(cookies) { | |
| this.cookies = cookies; | |
| this.headers = { | |
| 'Accept': 'application/json', | |
| 'Accept-Language': 'id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7', | |
| 'Content-Type': 'application/json', | |
| 'User-Agent': 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36', |
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
| /* | |
| Author: https://github.com/ZTRdiamond | |
| Source: https://whatsapp.com/channel/0029VagFeoY9cDDa9ulpwM0T | |
| Pesan: lu gabisa pake cheerio dan skill issue saat pakenya? regex-kan saja | |
| */ | |
| const axios = require('axios'); | |
| async function ttdl(url) { | |
| try { | |
| if(!url) return { status: false, message: "undefined reading url!" }; | |
| return await new Promise(async(resolve, reject) => { |
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 jwt from "jsonwebtoken" | |
| import UrlPattern from 'url-pattern'; | |
| import qs from 'query-string'; | |
| // jwt generator | |
| const privateKey = `-----BEGIN EC PRIVATE KEY----- | |
| MHcCAQEEIF7u6fQ1RaVV7YUg+dOD0j6upkFJ1fNQZ4nzz8n0m1zboAoGCCqGSM49 | |
| AwEHoUQDQgAEuG6npq0n2HHW+kKK2x2RfMh0J/AzwJeXgUKuMvzC2aXoKZyTLNf+ | |
| TNX1cfH+h+aMkOhenIabeiHsjdiHzX/n54lM/g== |
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 { parse as urlParser } from "spotify-uri"; | |
| import axios from "axios"; | |
| async function spotifydl(url) { | |
| try { | |
| if(!url) return { status: false, message: "undefined reading url!" }; | |
| return await new Promise(async(resolve, reject) => { | |
| const trackId = (urlParser(url)).id; | |
| if(!trackId) return reject("invalid spotify track url!"); | |
| axios.get(`https://api.spotifydown.com/download/` + trackId, { |
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
| /* | |
| Created by https://github.com/ztrdiamond ! | |
| Source: https://whatsapp.com/channel/0029VagFeoY9cDDa9ulpwM0T | |
| "Aku janji jika hapus watermark ini maka aku rela miskin hingga 7 turunan" | |
| */ | |
| import axios from 'axios'; | |
| import FormData from 'form-data'; | |
| async function text2imageFast(prompt) { |
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
| /* | |
| Created by https://github.com/ztrdiamond ! | |
| Source: https://whatsapp.com/channel/0029VagFeoY9cDDa9ulpwM0T | |
| "Aku janji jika hapus watermark ini maka aku rela miskin hingga 7 turunan" | |
| */ | |
| import axios from "axios"; | |
| import FormData from "form-data"; | |
| async function pixelart(prompt) { |
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
| /* | |
| Created by https://github.com/ztrdiamond ! | |
| Source: https://whatsapp.com/channel/0029VagFeoY9cDDa9ulpwM0T | |
| "Aku janji jika hapus watermark ini maka aku rela miskin hingga 7 turunan" | |
| */ | |
| import axios from "axios"; | |
| async function musicRecognition(url) { | |
| try { |
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
| /* | |
| Created by https://github.com/ztrdiamond ! | |
| Source: https://whatsapp.com/channel/0029VagFeoY9cDDa9ulpwM0T | |
| "Aku janji jika hapus watermark ini maka aku rela miskin hingga 7 turunan" | |
| */ | |
| import axios from "axios"; | |
| async function quotlyChat(ctx) { | |
| try { |
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"; | |
| /* | |
| Created by https://github.com/ztrdiamond ! | |
| Source: https://whatsapp.com/channel/0029VagFeoY9cDDa9ulpwM0T | |
| "Aku janji jika hapus watermark ini maka aku rela miskin hingga 7 turunan" | |
| */ | |
| async function removebg(buffer) { | |
| try { |
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 FormData from "form-data"; | |
| /* | |
| Created by https://github.com/ztrdiamond ! | |
| Source: https://whatsapp.com/channel/0029VagFeoY9cDDa9ulpwM0T | |
| "Aku janji jika hapus watermark ini maka aku rela miskin hingga 7 turunan" | |
| */ | |
| async function video2audio(buffer) { |
OlderNewer