Enha: filter out some words

This commit is contained in:
Grail Finder
2025-06-19 18:37:16 +03:00
parent d4daa02155
commit 2db1c246a4
10 changed files with 3402 additions and 5927 deletions

View File

@ -301,7 +301,10 @@ func recoverBots() {
}
func recoverBot(bm map[string]string) error {
// TODO: check if room still exists
// check if room still exists
if _, err := getRoomByID(bm["room_id"]); err != nil {
return fmt.Errorf("no such room: %s; err: %w", bm["room_id"], err)
}
log.Debug("recovering bot", "bot", bm)
_, err := llmapi.NewBot(bm["role"], bm["team"], bm["bot_name"], bm["room_id"], cfg)
if err != nil {