Feat: room expiry
This commit is contained in:
		| @@ -64,13 +64,11 @@ type BotPlayer struct { | ||||
| } | ||||
|  | ||||
| type Room struct { | ||||
| 	ID        string    `json:"id" db:"id"` | ||||
| 	CreatedAt time.Time `json:"created_at" db:"created_at"` | ||||
| 	// RoomName     string    `json:"room_name"` | ||||
| 	RoomPass    string `json:"room_pass"` | ||||
| 	RoomLink    string | ||||
| 	CreatorName string `json:"creator_name"` | ||||
| 	// PlayerList     []string `json:"player_list"` | ||||
| 	ID             string    `json:"id" db:"id"` | ||||
| 	CreatedAt      time.Time `json:"created_at" db:"created_at"` // limit? | ||||
| 	RoomPass       string    `json:"room_pass"` | ||||
| 	RoomLink       string | ||||
| 	CreatorName    string `json:"creator_name"` | ||||
| 	ActionHistory  []Action | ||||
| 	TeamTurn       UserTeam | ||||
| 	RedTeam        Team | ||||
| @@ -86,15 +84,14 @@ type Room struct { | ||||
| 	RedTurn        bool // false is blue turn | ||||
| 	MimeDone       bool | ||||
| 	IsPublic       bool | ||||
| 	// GameSettings *GameSettings `json:"settings"` | ||||
| 	IsRunning bool   `json:"is_running"` | ||||
| 	Language  string `json:"language" example:"en" form:"language"` | ||||
| 	RoundTime int32  `json:"round_time"` | ||||
| 	// ProgressPct uint32 `json:"progress_pct"` | ||||
| 	IsOver  bool | ||||
| 	TeamWon UserTeam // blue | red | ||||
| 	IsRunning      bool   `json:"is_running"` | ||||
| 	Language       string `json:"language" example:"en" form:"language"` | ||||
| 	RoundTime      int32  `json:"round_time"` | ||||
| 	IsOver         bool | ||||
| 	TeamWon        UserTeam // blue | red | ||||
| 	// needed for debug | ||||
| 	LogJournal []string | ||||
| 	LogJournal   []string | ||||
| 	LastActionTS time.Time | ||||
| } | ||||
|  | ||||
| // FindBotByTeamRole returns bot name if found; otherwise empty string | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder