action

package
v0.0.0-...-a57ebd1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package action is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	Ofuton      = []string{"お", "ふ", "と", "ん"}
	OfutonRegex = regexp.MustCompile(`ふとん[チチ][ャャ][レレ][ンン](ジ|ジ)`)
)
View Source
var (
	OfutonManagerRegex = regexp.MustCompile(`ふとん(し|(入|はい|い|行|潜|もぐ)っ)ても?[いよ良]い[??]`)
	OfutonRules        = []OfutonRule{
		{"しこしこして", "もふもふさせて"},
		{"しこしこ", "もふもふ"},
		{"しゅっしゅ", "もふもふ"},
		{"ぴゅっぴゅって", "もふもふって"},
		{"ぴゅっぴゅ", "おふとん"},
		{"いじるの", "おふとん"},
		{"おちんちん", "おふとん"},
		{"ちんちん", "おふとん"},
		{"出せる", "もふもふできる"},
		{"出し", "もふもふし"},
		{"手の平に", "朝まで"},
	}
)
View Source
var (
	SushiRegex  = regexp.MustCompile(`(🍣|寿司|すし|ちん(ちん|ぽ|こ))(握|にぎ)`)
	SushiEmojis = map[string]bool{
		"thinking_sushi":      true,
		"ios_big_sushi_1":     true,
		"ios_big_sushi_2":     true,
		"ios_big_sushi_3":     true,
		"ios_big_sushi_4":     true,
		"top_left_sushi":      true,
		"top_center_sushi":    true,
		"top_right_sushi":     true,
		"middle_left_sushi":   true,
		"middle_right_sushi":  true,
		"bottom_left_sushi":   true,
		"bottom_center_sushi": true,
		"bottom_right_sushi":  true,
	}
)
View Source
var (
	AVRegex = regexp.MustCompile(`([\p{L}\p{N}\p{Zs}]+?)\s*(?:くん|ちゃん)?の\s*(AV)\b`)
)
View Source
var (
	BattleChimpoRegex = regexp.MustCompile(`ちん(ちん|ぽ|こ)(なん[かぞ])?に([勝か][たちつてと]|[負ま][かきくけこ])`)
)
View Source
var (
	BlueArchiveEcchiGameRegex = regexp.MustCompile(`((ブ|ブ)[ルル][アア][カカ]|(ブ|ブ)[ルル][ーー][アア][ーー][カカ][イイ](ブ|ブ))は?(えっ?ち|[エエ][ッッ]?[チチ])`)
)
View Source
var (
	ChimpoChallengeRegex = regexp.MustCompile(`ちん(ちん|ぽ|こ)[チチ][ャャ][レレ][ンン](ジ|ジ)`)
)
View Source
var (
	ChimpoInsertionChallengeRegex = regexp.MustCompile(`ちん(ちん|ぽ|こ)挿入[チチ][ャャ][レレ][ンン](ジ|ジ)`)
)
View Source
var (
	ChimpoMatchingRegex = regexp.MustCompile(`ちん(ちん|ぽ|こ)(揃|そろ)え`)
)
View Source
var (
	DBRegex = regexp.MustCompile(`^SQL:\s?(.+)`)
)
View Source
var (
	DoubletRegex = regexp.MustCompile(`今日の\s*(?:doublet|二重語)|(?:\s*(\d+)\s*連\s*)?(?:doublet|二重語)\s*(?:が|ガ|ガ)[チチ][ャャ]`)
)
View Source
var (
	LawChallengeRegex = regexp.MustCompile(`法律((ギ|ギ)[リリ](ギ|ギ)[リリ])?[チチ][ャャ][レレ][ンン](ジ|ジ)`)
)
View Source
var (
	MpywRegex = regexp.MustCompile(`(?:mpyw\s*|まっぴー|実務経験)(?:\s*(\d+)\s*連)?(?:が|ガ|ガ)[チチ][ャャ]`)
)
View Source
var (
	PyuUpdateRegex = regexp.MustCompile(`^ぴゅっ♡+$`)
)
View Source
var (
	PyuppyuManagerRegex = regexp.MustCompile(`ぴゅっぴゅしても?[いよ良]い[??]`)
)
View Source
var (
	ThroughRegex = regexp.MustCompile(`(?:\s*(\d+)\s*連)?駿河茶|今日の\s*through|through\s*(?:が|ガ|ガ)[チチ][ャャ]`)
)

Functions

func NewAVShindanmaker

func NewAVShindanmaker(c client.Shindanmaker, environment config.Environment) service.Action

func NewBattleChimpoShindanmaker

func NewBattleChimpoShindanmaker(c client.Shindanmaker, environment config.Environment) service.Action

func NewBlueArchiveEcchiGameShindanmaker

func NewBlueArchiveEcchiGameShindanmaker(c client.Shindanmaker, environment config.Environment) service.Action

func NewChimpoChallengeShindanmaker

func NewChimpoChallengeShindanmaker(c client.Shindanmaker, environment config.Environment) service.Action

func NewChimpoInsertionChallengeShindanmaker

func NewChimpoInsertionChallengeShindanmaker(c client.Shindanmaker, environment config.Environment) service.Action

func NewChimpoMatchingShindanmaker

func NewChimpoMatchingShindanmaker(c client.Shindanmaker, environment config.Environment) service.Action

func NewDB

func NewDB(environment config.Environment) service.Action

func NewDoublet

func NewDoublet(repository repository.DoubletRepository, environment config.Environment) service.Action

func NewLawChallengeShindanmaker

func NewLawChallengeShindanmaker(c client.Shindanmaker, environment config.Environment) service.Action

func NewMpyw

func NewMpyw(c client.Mpyw, environment config.Environment) service.Action

func NewOfufutonChallenge

func NewOfufutonChallenge(r Random, environment config.Environment) service.Action

func NewOfutonManagerShindanmaker

func NewOfutonManagerShindanmaker(c client.Shindanmaker, environment config.Environment) service.Action

func NewPyuUpdate

func NewPyuUpdate(environment config.Environment) service.Action

func NewPyuppyuManagerShindanmaker

func NewPyuppyuManagerShindanmaker(c client.Shindanmaker, environment config.Environment) service.Action

func NewSushiShindanmaker

func NewSushiShindanmaker(c client.Shindanmaker, environment config.Environment) service.Action

func NewThrough

func NewThrough(repository repository.ThroughRepository, environment config.Environment) service.Action

Types

type MockRandom

type MockRandom struct {
	// contains filtered or unexported fields
}

MockRandom is a mock of Random interface.

func NewMockRandom

func NewMockRandom(ctrl *gomock.Controller) *MockRandom

NewMockRandom creates a new mock instance.

func (*MockRandom) EXPECT

func (m *MockRandom) EXPECT() *MockRandomMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRandom) IntN

func (m *MockRandom) IntN(n int) int

IntN mocks base method.

type MockRandomMockRecorder

type MockRandomMockRecorder struct {
	// contains filtered or unexported fields
}

MockRandomMockRecorder is the mock recorder for MockRandom.

func (*MockRandomMockRecorder) IntN

func (mr *MockRandomMockRecorder) IntN(n any) *gomock.Call

IntN indicates an expected call of IntN.

type OfutonRule

type OfutonRule struct {
	Before string
	After  string
}

type Random

type Random interface {
	IntN(n int) int
}

Jump to

Keyboard shortcuts

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