Refactor: remove pkg mem cache
This commit is contained in:
		| @@ -2,6 +2,7 @@ package llmapi | ||||
|  | ||||
| import ( | ||||
| 	"gralias/config" | ||||
| 	"gralias/models" | ||||
| 	"log/slog" | ||||
| ) | ||||
|  | ||||
| @@ -84,3 +85,13 @@ type Bot struct { | ||||
| 	// SignalsCh chan bool | ||||
| 	// DoneCh    chan bool | ||||
| } | ||||
|  | ||||
| func (b *Bot) ToPlayer() *models.Player { | ||||
| 	return &models.Player{ | ||||
| 		Role:     models.StrToUserRole(b.Role), | ||||
| 		Team:     models.StrToUserTeam(b.Team), | ||||
| 		RoomID:   &b.RoomID, | ||||
| 		Username: b.BotName, | ||||
| 		IsBot:    true, | ||||
| 	} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder