From cbd962a3a60e5eec1eafe097821a68daf6e9a4d0 Mon Sep 17 00:00:00 2001 From: Pika-Kun 3 <121213527+PikaBotz@users.noreply.github.com> Date: Mon, 9 Oct 2023 18:44:58 +0530 Subject: [PATCH] New command ATTP --- lib/plugins/tools-attp.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 lib/plugins/tools-attp.js diff --git a/lib/plugins/tools-attp.js b/lib/plugins/tools-attp.js new file mode 100644 index 000000000..6bf50713b --- /dev/null +++ b/lib/plugins/tools-attp.js @@ -0,0 +1,27 @@ +exports.cmdName = () => { + return { + name: ['attp'], + alias: ['attps'], + category: "tools", + desc: `Make text to rainbow stickers.` + }; +} + +exports.getCommand = async (args, text, anyaV2, pika) => { +require('../../config'); + if (!text) return pika.reply("Enter a text to make a sticker"); + await pika.react("🌈"); + const { getBuffer } = require("../lib/myfunc"); + await getBuffer(`https://vihangayt.me/maker/text2gif?q=${text}`) + .then((response, error) => { + if (error) return pika.reply(message.error); + anyaV2.sendVideoAsSticker(pika.chat, response, pika, { + packname: global.packname, + author: global.author, + }) + .catch((err) => { + console.log(err); + return pika.reply('Package ffmpeg not found.'); + }); + }); +}