From 0146bdc2842d2f92b1d7eeacc69e112f16e3df29 Mon Sep 17 00:00:00 2001 From: KaweeX <88151250+Kaweeshachamodx@users.noreply.github.com> Date: Sun, 28 Jan 2024 11:19:38 +0530 Subject: [PATCH] =?UTF-8?q?[=20Jessi-md=204.8.2=20=E2=8F=B1=EF=B8=8F=20]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/update.js | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 plugins/update.js 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