Skip to content

Commit

Permalink
New command ATTP
Browse files Browse the repository at this point in the history
  • Loading branch information
PikaBotz authored Oct 9, 2023
1 parent 9deb578 commit cbd962a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions lib/plugins/tools-attp.js
Original file line number Diff line number Diff line change
@@ -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.');
});
});
}

0 comments on commit cbd962a

Please sign in to comment.