diff --git a/plugins/update.js b/plugins/update.js deleted file mode 100644 index 34ab2363..00000000 --- a/plugins/update.js +++ /dev/null @@ -1,16 +0,0 @@ -let { execSync } = require('child_process') - -let handler = async (m, { conn, text, isROwner }) => { - if (global.conn.user.jid == conn.user.jid) { - let stdout = execSync('git remote set-url origin https://github.com/whiteshadowofficial/Jessi-md.git && git pull' + (isROwner && text ? ' ' + text : '')) - if (isROwner) require('fs').readdirSync('plugins').map(v => global.reload('', v)) - m.reply(stdout.toString()) - } -} -handler.help = ['update'] -handler.tags = ['host'] -handler.command = /^update$/i - -handler.owner = true - -module.exports = handler \ No newline at end of file