const fetch = require('node-fetch'); const uploadImage = require('../lib/uploadImage.js');

const handler = async (m, { conn, usedPrefix, command, text }) => { const who = m.mentionedJid && m.mentionedJid[0] ? m.mentionedJid[0] : m.fromMe ? conn.user.jid : m.sender; const name = await conn.getName(who); const q = m.quoted ? m.quoted : m; const mime = (q.msg || q).mimetype || ''; if (!mime) throw 'Kirim/Reply Gambar Dengan Caption .toanime'; m.reply('Wait a moment...'); const media = await q.download(); const url = await uploadImage(media); const hasil = await (await fetch(https://api.lolhuman.xyz/api/imagetoanime?apikey=zycaxriu&img=${url})).buffer(); await conn.sendFile(m.chat, hasil, '', 'Nih Kak, Maaf Kalau Hasilnya Tidak Sesuai Keinginan', m); };

handler.help = ['toanime']; handler.tags = ['ai']; handler.command = /^(jadianime|toanime)$/i; handler.premium = false;

module.exports = handler;


原文地址: https://www.cveoy.top/t/topic/lhGJ 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录