Fix: bot recovery
This commit is contained in:
@ -186,11 +186,11 @@ func HandleAddBot(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
botname := fmt.Sprintf("bot_%d", len(llmapi.SignalChanMap)+1) // what if many rooms?
|
||||
bot, err := llmapi.NewBot(role, team, botname, fi.Room.ID, cfg)
|
||||
_, err = llmapi.NewBot(role, team, botname, fi.Room.ID, cfg, false)
|
||||
if err != nil {
|
||||
abortWithError(w, err.Error())
|
||||
return
|
||||
}
|
||||
go bot.StartBot()
|
||||
// go bot.StartBot()
|
||||
notify(models.NotifyRoomUpdatePrefix+fi.Room.ID, "")
|
||||
}
|
||||
|
Reference in New Issue
Block a user