| 12345678910111213141516171819 |
- import {googleImage} from '@bochilteam/scraper';
- const handler = async (m, {conn, text, usedPrefix, command}) => {
- if (!text) return m.reply(`๐ค๐๐ฒ ๐ฏ๐๐๐ฐ๐ฎ๐ฟ? ๐ค๏ธ ๐ช๐๐๐ง ๐๐ ๐ก๐ ๐จ๐๐๐ช๐๐๐ฃ๐ฉ๐ ๐ข๐๐ฃ๐๐ง๐\nโข ๐๐ท๐ฒ๐บ๐ฝ๐น๐ผ\n*${usedPrefix + command} Kantu*`)
- if (m.text.includes('gore') || m.text.includes('cp')|| m.text.includes('porno')|| m.text.includes('Gore')|| m.text.includes('rule')|| m.text.includes('CP') || m.text.includes('Rule34') || m.text.includes('xxx')) throw '๐ No voy a buscar tu pendejadas....'
- try {
- const res = await googleImage(text);
- const image = await res.getRandom();
- const link = image;
- conn.sendFile(m.chat, link, 'error.jpg', `_๐ ๐๐๐จ๐ช๐ก๐ฉ๐๐๐ค๐จ ๐๐: ${text}_`, m, null, fake);
- //conn.sendButton(m.chat, ``, botname, link, [['๐ ๐๐๐๐๐๐๐๐๐ ๐', `/${command} ${text}`]], null, null, m, null, fake)
- } catch (e) {
- console.log(e)
- }}
- handler.help = ['gimage <query>', 'imagen <query>'];
- handler.tags = ['buscadores'];
- handler.command = /^(gimage|image|imagen)$/i;
- handler.register = true
- handler.limit = 1
- export default handler;
|