From 2f63253ec0289b32923c445ffcac21bcae41acac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Mon, 14 Mar 2022 12:50:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E4=BC=98=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index c0295c1c..ba73d608 100644 --- a/main.go +++ b/main.go @@ -207,7 +207,7 @@ func main() { Handle(func(ctx *zero.Ctx) { ctx.SendChain(message.Text(kanban.Kanban())) }) - zero.Run( + zero.RunAndBlock( zero.Config{ NickName: append([]string{*adana}, nicks...), CommandPrefix: *prefix, @@ -216,7 +216,6 @@ func main() { SuperUsers: flag.Args(), // 通过命令行参数的方式添加主人账号 Driver: []zero.Driver{driver.NewWebSocketClient(*url, *token)}, }, + process.GlobalInitMutex.Unlock, ) - process.GlobalInitMutex.Unlock() - select {} }