projek1 / plugins /donwloader-githubdl.js
devstok's picture
Upload folder using huggingface_hub
d8a4b7b verified
let handler = async (m, { args, usedPrefix, command }) => {
if (!args[0]) throw 'usernamenya mana om'
if (!args[1]) throw 'repo nya mana?'
if (!args[2]) throw 'masukkan nama branch'
let url = `https://github.com/${args[0]}/${args[1]}/archive/refs/heads/${args[2]}.zip`
//F
m.reply(`compressing data to file zip*`)
conn.sendFile( m.chat, url, `${args[1]} ${args[2]}.zip`, null, m)
}
handler.help = ['githubdl']
handler.tags = ['github']
handler.command = /githubdl/i
handler.limit = true
module.exports = handler