| 1234567891011121314 |
- import fetch from 'node-fetch';
- const handler = async (m, {conn, args, text}) => {
- if (!text) throw '*โ ๏ธ ๐๐ง๐ ๐ซ๐๐ฌ๐ ๐ฎ๐ง ๐๐ง๐ฅ๐๐๐/๐ฎ๐ซ๐ฅ ๐๐ฅ ๐๐ฎ๐๐ฅ ๐๐๐ฌ๐๐ ๐๐๐จ๐ซ๐ญ๐๐ซ?*';
- const shortUrl1 = await (await fetch(`https://tinyurl.com/api-create.php?url=${args[0]}`)).text();
- if (!shortUrl1) throw `*[โ] ๐๐๐๐๐, ๐๐๐๐๐๐๐๐๐ ๐๐๐ ๐๐ ๐๐๐๐๐ ๐๐๐๐๐๐๐๐๐ ๐๐๐ ๐๐ ๐๐๐๐๐ ๐๐๐๐๐๐๐๐๐ ๐๐๐ ๐๐ ๐๐๐๐๐ ๐ ๐๐๐๐๐๐๐๐๐ ๐๐ ๐๐๐๐๐*`;
- const done = `*๐ถ ๐๐ข๐ง๐ค ๐๐๐จ๐ซ๐ญ๐๐๐จ ๐๐จ๐ซ๐ซ๐๐๐ญ๐๐ฆ๐๐ง๐ญ๐!!*\n\n*โข ๐๐ข๐ง๐ค ๐๐ง๐ญ๐๐ซ๐ข๐จ๐ซ:*\n${text}\n*โข ๐๐ข๐ง๐ค ๐๐๐จ๐ซ๐ญ๐๐๐จ:*\n${shortUrl1}`.trim();
- m.reply(done);
- };
- handler.help = ['tinyurl', 'acortar'].map((v) => v + ' <link>');
- handler.tags = ['tools'];
- handler.command = /^(tinyurl|short|acortar|corto)$/i;
- handler.fail = null;
- handler.register = true
- export default handler;
|