From 568953503ab9464fe91594fef115725d1109c1c8 Mon Sep 17 00:00:00 2001 From: cdle Date: Sun, 11 Jun 2023 23:07:10 +0800 Subject: [PATCH] x --- core/adapter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/adapter.go b/core/adapter.go index dd063cb..7c440be 100644 --- a/core/adapter.go +++ b/core/adapter.go @@ -172,8 +172,8 @@ func (f *Factory) Init(botplt, botid string) { f.demo = &CustomSender{ f: f, } - if v, ok := Bots[[2]string{botplt, botid}]; ok { - go v.Destroy() + if _, ok := Bots[[2]string{botplt, botid}]; ok { + // go v.Destroy() console.Warn("%s机器人%s因冲突销毁!", botplt, botid) } Bots[[2]string{botplt, botid}] = f