From 8116c87ff437a8d6a0803674018c42328c50851e Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Tue, 31 Aug 2021 21:10:47 +0800 Subject: [PATCH] update --- core/function.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/function.go b/core/function.go index b2a6dc9..c802a71 100644 --- a/core/function.go +++ b/core/function.go @@ -37,6 +37,7 @@ var functions = []Function{ }, { Rules: []string{"^升级$"}, + Admin: true, Handle: func(s im.Sender) bool { s.Reply("傻妞开始拉取代码。") rtn, err := exec.Command("sh", "-c", "cd "+ExecPath+" && git stash && git pull").Output() @@ -71,6 +72,7 @@ var functions = []Function{ }, { Rules: []string{"^重启$"}, + Admin: true, Handle: func(s im.Sender) bool { s.Reply("傻妞重启程序。") Daemon()