fix: exex

This commit is contained in:
bietiaop 2024-08-20 14:17:45 +08:00
parent c6a41ab210
commit 4ce9b01a1e

View file

@ -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) {