Documentation
¶
Index ¶
- Constants
- Variables
- func GetCurrentUnixTimestampString() string
- func GetK(key petValidKey) (string, error)
- func GetKNoUpdate(key petValidKey) (string, error)
- func GetName() (name string, err error)
- func ParseWithC(text string, v ...any) (string, error)
- func Say(text string, v ...any)
- func Sayln(text string, v ...any) error
- func SetK[T string | int](key petValidKey, val T) error
- func UpdateHunger() error
- func UpdateLatestInteractionTime() error
- func YellowLn(text string, v ...any)
- type PetData
Constants ¶
View Source
const ( PetName petValidKey = "name" PetLatestInteractionTimestamp petValidKey = "latestinteractiontime" PetHunger petValidKey = "hunger" PetSickness petValidKey = "sickness" SlackWebhook petValidKey = "slackwebhooj" )
View Source
const ( SECOND = 1 MINUTE = 60 * SECOND HOUR = MINUTE * 60 DAY = HOUR * 24 WEEK = DAY * 7 )
View Source
const STARVATION = 24 * 2
Variables ¶
View Source
var SayContent string = ""
Functions ¶
func GetCurrentUnixTimestampString ¶
func GetCurrentUnixTimestampString() string
func GetKNoUpdate ¶
func UpdateHunger ¶
func UpdateHunger() error
func UpdateLatestInteractionTime ¶
func UpdateLatestInteractionTime() error
Types ¶
Click to show internal directories.
Click to hide internal directories.