mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
fix: exex
This commit is contained in:
parent
c6a41ab210
commit
4ce9b01a1e
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue