Skip to content

Commit

Permalink
Added attp
Browse files Browse the repository at this point in the history
  • Loading branch information
souravkl11 authored Jun 2, 2022
1 parent c0b975b commit afc355a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions plugins/converters.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ const ffmpeg = require('fluent-ffmpeg');
const {
saveMessage
} = require('./misc/saveMessage');
const {
skbuffer
} = require('raganork-bot');
const Config = require('../config');
const {
MODE,
Expand Down Expand Up @@ -96,4 +99,13 @@ Module({
.on('end', async () => {
await message.sendReply(fs.readFileSync('output.png'), 'image');
});

}));
Module({
pattern: 'attp ?(.*)',
fromMe: w,
desc: "Text to animated sticker"
}, (async (message, match) => {
if (match[1] == '') return await message.sendMessage("*Need text*")
await message.sendReply(await skbuffer("https://api.xteam.xyz/attp?file&text="+encodeURI(match[1])), 'sticker');
}));

0 comments on commit afc355a

Please sign in to comment.