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 fetch from 'node-fetch'; | |
| import FormData from 'form-data'; | |
| async function uploadUguu(buffer) { | |
| const form = new FormData(); | |
| form.append('files[]', buffer, `${Date.now()}.jpg`); | |
| const res = await fetch("https://uguu.se/upload.php", { method: "POST", body: form }); | |
| const json = await res.json(); | |
| if (!json.success) throw new Error("Upload gagal"); | |
| return json.files[0].url; |
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
| /* | |
| REACT CH | |
| • Type : Plugin ESM | |
| • Author : MifNity | |
| • ApiKey : https://asitha.top/login?ref=mamixx157435 | |
| */ | |
| import fetch from 'node-fetch'; | |
| let handler = async (m, { conn, args, usedPrefix, command }) => { | |
| if (args.length < 2) { |
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"; | |
| import fs from "fs"; | |
| import path from "path"; | |
| import ffmpeg from "fluent-ffmpeg"; | |
| import ffmpegInstaller from "@ffmpeg-installer/ffmpeg"; | |
| import fetch from "node-fetch"; | |
| ffmpeg.setFfmpegPath(ffmpegInstaller.path); |
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"; | |
| export default { | |
| name: "ytdl", | |
| category: "downloader", | |
| command: ["ytdl", "yt"], | |
| run: async (conn, m) => { | |
| try { | |
| const input = m.isQuoted ? m.quoted.text : m.text; | |
| const regex = /(https?:\/\/(?:www\.)?(youtube\.com|youtu\.be)\/[^\s]+)/; |
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 fs from "fs"; | |
| import path from "path"; | |
| import ffmpeg from "fluent-ffmpeg"; | |
| import ffmpegInstaller from "@ffmpeg-installer/ffmpeg"; | |
| import fetch from "node-fetch"; | |
| import ytdl from "@vreden/youtube_scraper"; | |
| import yts from "yt-search"; | |
| ffmpeg.setFfmpegPath(ffmpegInstaller.path); |
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 fetch from "node-fetch" | |
| export default { | |
| name: "ocr", | |
| category: "tools", | |
| command: ["ocr", "readtext"], | |
| settings: { owner: false }, | |
| run: async (conn, m) => { | |
| 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 fs from "fs" | |
| import axios from "axios" | |
| import FormData from "form-data" | |
| import { fileTypeFromBuffer } from "file-type" | |
| import util from "util" | |
| export default { | |
| name: "tourllunara", | |
| category: "tools", | |
| command: ["tourl", "upload", "lunara"], |
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 fs from "fs" | |
| import axios from "axios" | |
| import FormData from "form-data" | |
| import crypto from "crypto" | |
| import { fileTypeFromBuffer } from "file-type" | |
| async function uploadToUguu(buffer) { | |
| const detected = await fileTypeFromBuffer(buffer) | |
| const ext = detected?.ext || "jpg" | |
| const mime = detected?.mime || "image/jpeg" |
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
| fs from 'fs' | |
| import axios from 'axios' | |
| import crypto from 'crypto' | |
| import { fileTypeFromBuffer } from 'file-type' | |
| const githubToken = 'Github_token' | |
| const owner = 'username_github' | |
| const branch = 'main' | |
| let repos = ['dat1','dat2','dat3','dat4'] |