From 57e032668a899fc3987740038a8f353ce3cb57ec Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Fri, 17 Sep 2021 19:42:43 +0800 Subject: [PATCH] update --- core/init.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/init.go b/core/init.go index 05f1e59..e287ed1 100644 --- a/core/init.go +++ b/core/init.go @@ -5,7 +5,7 @@ import ( "time" ) -var Duration = time.Duration(sillyGirl.GetInt("duration", 5)) * time.Second +var Duration time.Duration func init() { killp() @@ -20,4 +20,5 @@ func init() { InitReplies() initToHandleMessage() initSys() + Duration = time.Duration(sillyGirl.GetInt("duration", 5)) * time.Second }