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
| /*• Nama Fitur : toqin | |
| • Type : Plugin ESM | |
| • Link Channel : https://whatsapp.com/channel/0029VbBt4432f3ENa8ULoM1J | |
| • Author : Z7 | |
| */ | |
| import { Buffer } from "buffer"; | |
| const DEFAULT_PROMPT = ` | |
| Buat saya memakai kostum Qin Shi Huang dari anime Record of Ragnarok, termasuk desain penutup mata dan pakaian yang dikenakan Qin Shi Huang di dalam anime Record of Ragnarok. Buatkan pose khasnya. |
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'); | |
| const FormData = require('form-data'); | |
| async function Uguu(buffer, filename) { | |
| let form = new FormData(); | |
| form.append('files[]', buffer, { | |
| filename | |
| }); | |
| let { | |
| data |
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 handler = async (m, { text, conn }) => { | |
| if (!text) return m.reply('Masukkan percakapanmu, contoh: Hai theresa, apa kabar?') | |
| if (text.includes('~')) { | |
| return m.reply('Karakter "~" tidak diperbolehkan.') | |
| } | |
| 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
| const fs = require('fs'); | |
| const axios = require('axios'); | |
| const FormData = require('form-data'); | |
| /** | |
| * Upload file ke Catbox (binary) | |
| * @param {string} filePath | |
| * @returns {Promise<string>} | |
| */ | |
| async function uploadCatbox(filePath) { |
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'); | |
| const handler = async (m, { | |
| conn, | |
| args, | |
| usedPrefix, | |
| command | |
| }) => { | |
| if (!args[0]) { | |
| return m.reply(`Usage: ${usedPrefix + command} <tiktok_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
| const ffmpeg = require('fluent-ffmpeg'); | |
| const axios = require('axios'); | |
| const { promises: fs } = require('fs'); | |
| const path = require('path'); | |
| let handler = async (m, { conn, text, usedPrefix, command }) => { | |
| if (!text) { | |
| throw `Please provide some text.\n\n*Example:*\n${usedPrefix + command} Hello World`; | |
| } |
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
| case "ssweb": { | |
| const url = args[0]; | |
| if (!url) { | |
| m.reply('Please provide a URL to take a screenshot of.\n\nExample: .ssweb https://example.com'); | |
| break; | |
| } | |
| const targetUrl = url.startsWith('http://') || url.startsWith('https://') ? url : `https://${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
| const axios = require('axios'); | |
| const FormData = require('form-data'); | |
| const fs = require('fs'); | |
| const { | |
| tmpdir | |
| } = require('os'); | |
| const { | |
| join | |
| } = require('path'); |