aireply

package
v1.2.3-beta1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package aireply 人工智能回复

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetReplyMode

func GetReplyMode(ctx *zero.Ctx) (mode int64)

GetReplyMode 取得回复模式

Types

type AIReply

type AIReply interface {
	// DealQuestion 把椛椛替换为各api接口的bot名字
	DealQuestion(preMsg string) (msg string)
	// GetReply 取得回复消息
	GetReply(msg string) (reply string)
	// DealReply 处理回复消息
	DealReply(reply string) (textReply string, faceReply int)
}

AIReply 公用智能回复类

func NewAIReply

func NewAIReply(mode int64) AIReply

NewAIReply 智能回复简单工厂

type QYKReply

type QYKReply struct{}

QYKReply 青云客回复类

func (*QYKReply) DealQuestion

func (*QYKReply) DealQuestion(preMsg string) (msg string)

DealQuestion 把椛椛替换为菲菲

func (*QYKReply) DealReply

func (*QYKReply) DealReply(reply string) (textReply string, faceReply int)

DealReply 处理回复消息

func (*QYKReply) GetReply

func (*QYKReply) GetReply(msg string) (reply string)

GetReply 取得回复消息

type XiaoAiReply

type XiaoAiReply struct{}

XiaoAiReply 小爱回复类

func (*XiaoAiReply) DealQuestion

func (*XiaoAiReply) DealQuestion(preMsg string) (msg string)

DealQuestion 把椛椛替换为小爱

func (*XiaoAiReply) DealReply

func (*XiaoAiReply) DealReply(reply string) (textReply string, faceReply int)

DealReply 处理回复消息

func (*XiaoAiReply) GetReply

func (*XiaoAiReply) GetReply(msg string) (reply string)

GetReply 取得回复消息

Jump to

Keyboard shortcuts

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