random

package module
v0.0.0-...-1011682 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2021 License: MIT Imports: 14 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BaseTime = time.Date(2021, 8, 8, 0, 0, 0, 0, jst) // 競技の日と被るように
)
View Source
var CharacterData = []string{
	"いじっぱり",
	"うっかりや",
	"おくびょう",
	"おだやか",
	"おっとり",
	"おとなしい",
	"がんばりや",
	"きまぐれ",
	"さみしがり",
	"しんちょう",
	"すなお",
	"ずぶとい",
	"せっかち",
	"てれや",
	"なまいき",
	"のうてんき",
	"のんき",
	"ひかえめ",
	"まじめ",
	"むじゃき",
	"やんちゃ",
	"ゆうかん",
	"ようき",
	"れいせい",
	"わんぱく",
}

昇順ソート済み

Functions

func Character

func Character() string

func CharacterWithID

func CharacterWithID() (string, int)

func Condition

func Condition() (isSitting bool, isDirty bool, isOverweight bool, isBroken bool)

func Image

func Image() ([]byte, error)

func IsBrokenFromLastCondition

func IsBrokenFromLastCondition(wasBroken bool) (isBroken bool)

func IsDirtyFromLastCondition

func IsDirtyFromLastCondition(wasDirty bool) (isDirty bool)

func IsOverweightFromLastCondition

func IsOverweightFromLastCondition(wasOverweight bool) (isOverweight bool)

func IsSittingFromLastCondition

func IsSittingFromLastCondition(wasSit bool) (isSitting bool)

func IsuName

func IsuName() string

func MessageWithCondition

func MessageWithCondition(isDirty, isOverweight, isBroken bool, characterID int) string

func SetGeneratedUser

func SetGeneratedUser(username string)

func Time

func Time() time.Time

func TimeAfterArg

func TimeAfterArg(t time.Time) time.Time

func UserName

func UserName() string

108 * 237 通りのユーザ名を重複なしで返す

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL