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
| import fs from 'fs' | |
| import axios from 'axios' | |
| import FormData from 'form-data' | |
| import path from 'path' | |
| import { fileTypeFromBuffer } from 'file-type' | |
| export default { | |
| name: "tourl2", | |
| category: "tools", | |
| command: ["tourl2", "url2", "upload2"], |
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'] |