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