This commit is contained in:
cdle
2023-06-11 23:02:18 +08:00
parent 29e4fc8c9e
commit 99dc6425ca
6 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ func (f *Factory) Init(botplt, botid string) {
f: f,
}
if v, ok := Bots[[2]string{botplt, botid}]; ok {
v.Destroy()
go v.Destroy()
console.Warn("%s机器人%s因冲突销毁!", botplt, botid)
}
Bots[[2]string{botplt, botid}] = f