diff --git a/lib/update.js b/lib/update.js index d565bee..ad3ecf7 100644 --- a/lib/update.js +++ b/lib/update.js @@ -27,6 +27,11 @@ let ZZZUpdate = null; */ if (Update) { ZZZUpdate = class ZZZUpdate extends Update { + exec(cmd, plugin, opts = {}) { + if (plugin) opts.cwd = `plugins/${plugin}`; + return Bot.exec(cmd, opts); + } + async handleLog(remote = false) { let cmdStr = 'git log -100 --pretty="%h||%cd||%s" --date=format:"%F %T"'; if (remote) {