Documentation ¶
Overview ¶
Package reactions bot reactions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Provide( Load, LoadStart, LoadHelp, LoadInvite, LoadReply, LoadReplyMessage, LoadReplySticker, LoadReplyVoice, )
nolint:gochecknoglobals,golint,stylecheck
Functions ¶
This section is empty.
Types ¶
type FlatCollection ¶
type FlatCollection []string
FlatCollection flat reactions collection.
func (*FlatCollection) Reaction ¶
func (c *FlatCollection) Reaction() string
Reaction return collection random reaction.
type GenderizedCollection ¶
type GenderizedCollection struct { Female []string `yaml:"female"` Male []string `yaml:"male"` Neutral []string `yaml:"neutral"` }
GenderizedCollection gender-oriented collection.
type Invite ¶
type Invite struct {
*FlatCollection
}
Invite reactions to invite.
func LoadInvite ¶
LoadInvite load invite reactions.
type Reply ¶
type Reply struct { Message *ReplyMessage Sticker *ReplySticker Voice *ReplyVoice }
Reply bot reply reactions.
func LoadReply ¶
func LoadReply(message *ReplyMessage, sticker *ReplySticker, voice *ReplyVoice) *Reply
LoadReply load reply reactions.
type ReplyMessage ¶
type ReplyMessage struct {
*GenderizedCollection
}
ReplyMessage reactions to text messages.
func LoadReplyMessage ¶
func LoadReplyMessage(log *zap.Logger, dir types.ReactionsDir) (r *ReplyMessage, err error)
LoadReplyMessage load reply message reactions.
type ReplySticker ¶
type ReplySticker struct {
*GenderizedCollection
}
ReplySticker reactions to stickers.
func LoadReplySticker ¶
func LoadReplySticker(log *zap.Logger, dir types.ReactionsDir) (r *ReplySticker, err error)
LoadReplySticker load reply sticker reactions.
type ReplyVoice ¶
type ReplyVoice struct {
*GenderizedCollection
}
ReplyVoice reactions to voice messages.
func LoadReplyVoice ¶
func LoadReplyVoice(log *zap.Logger, dir types.ReactionsDir) (r *ReplyVoice, err error)
LoadReplyVoice load reply voice repository.
Click to show internal directories.
Click to hide internal directories.