{"size": 806, "ext": "js", "max_stars_repo_path": "plugins/nekopoi_latest.js", "max_stars_repo_name": "adulalhy/MechaBots", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "plugins/nekopoi_latest.js", "max_issues_repo_name": "adulalhy/MechaBots", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "plugins/nekopoi_latest.js", "max_forks_repo_name": "adulalhy/MechaBots", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.7857142857, "max_line_length": 75, "alphanum_fraction": 0.6749379653}
let { getVideo, getLatest } = require('../lib/nekopoi')
let handler = async (m, { text }) => {
 let latest = await getLatest()
 let { title, links } = await getVideo(latest.link)
 if (links.length == 0) throw 'Video Tidak Ditemukan!'
 teksnya = `*[NEKOPOI LATEST]*\n\nTitle : ${title}\n\n${links.join('\n')}`
// m.reply(teksnya.trim())
 conn.sendFile(m.chat, latest.image, 'nekopoi.jpeg', teksnya.trim(), m)
}
handler.help = ['nekolatest', 'nekopoilatest']
handler.tags = ['sange']
handler.command = /^nekolatest|nekopoilatest$/i
handler.owner = false
handler.mods = false
handler.premium = true
handler.group = false
handler.private = false
handler.nsfw = true

handler.limit = true
handler.admin = false
handler.botAdmin = false

handler.fail = null


module.exports = handler
