feat: add StrToUserRole function
This commit is contained in:
		| @@ -27,7 +27,16 @@ func StrToUserTeam(s string) UserTeam { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // write StrToUserRole func; ai! | ||||
| func StrToUserRole(s string) UserRole { | ||||
| 	switch s { | ||||
| 	case "mime": | ||||
| 		return UserRoleMime | ||||
| 	case "guesser": | ||||
| 		return UserRoleGuesser | ||||
| 	default: | ||||
| 		return UserRoleNone | ||||
| 	} | ||||
| } | ||||
|  | ||||
| type UserState struct { | ||||
| 	Username string | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder (aider)
					Grail Finder (aider)