
import fg from 'api-dylux'
let handler  = async (m, { conn, args, text, usedPrefix, command }) => {
  if (!text) throw `âœ³ï¸� Enter query for image\nğŸ“Œ Example: *${usedPrefix + command}* The Sindh Nature`
  let res = await fg.googleImage(text)
  conn.sendFile(m.chat, res.getRandom(), 'img.png', `
âœ… Here is your image: *${text}*`.trim(), m)
}
handler.help = ['imagen']
handler.tags = ['img']
handler.command = /^(img2|image2)$/i
handler.diamond = false

export default handler
