Documentation
¶
Index ¶
Constants ¶
View Source
const (
AnonUser = "匿名大佬"
)
View Source
const (
CommandReset = "reset"
)
Variables ¶
This section is empty.
Functions ¶
func MarshalConfig ¶
Types ¶
type ChatMessage ¶
type ChatMessage struct {
User string // who send the message
Type NewMessageType
Mentiond string // @someone
Content string
}
func ParseChatMessage ¶
func ParseChatMessage(msg missevan.FMMessage) (nm ChatMessage)
type Config ¶
type Config struct {
MissEvan MissEvanConfig `yaml:"missevan"`
OpenAi OpenAIConfig `yaml:"openai"`
}
func UnmarshalConfig ¶
type MissEvanConfig ¶
type NewMessageType ¶
type NewMessageType int
const ( CommonContent NewMessageType = iota MentiondContent MentiondCommand )
type OpenAIConfig ¶
Click to show internal directories.
Click to hide internal directories.