Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BonusConfig ¶
type BonusConfig struct { SubString string // string to search for in timestamp Greeting string // Message from bot to user upon bonus hit StepPoints int // points to multiply substring position with NoStepPoints int // points to return for match when UseStep == false PrefixChar rune // the char required as only prefix for max bonus, e.g. '0' UseStep bool // if to multiply points for each position to the right in string }
type BonusConfigs ¶
type BonusConfigs []BonusConfig
type BonusReturn ¶
type BonusReturns ¶
type BonusReturns []BonusReturn
type ChannelData ¶
type ChannelDataMap ¶
type ChannelDataMap map[string]*ChannelData
type InspectionDecision ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
User is a transient wrapper for UserData
type UserData ¶
type UserData struct { Entry EntryTime `json:"entry"` Taxes ValueTracker `json:"taxes"` // how much tax over time Bonuses ValueTracker `json:"bonuses"` // how much bonuses over time Misses ValueTracker `json:"misses"` // how many times have the user been early or late Points int `json:"score"` // current points total Done bool `json:"done"` // true if the user has reached the target limit }
type UserDataMap ¶
type ValueTracker ¶
Click to show internal directories.
Click to hide internal directories.