Documentation ¶
Index ¶
Constants ¶
View Source
const AchanID = "achan"
ID
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AI ¶
type AI interface { // 聊天,返回AI的回答文本 Chat() (string, error) // 聊天,text为对话文本,id为聊天的ID,返回AI的回答文本 ChatWith(text string, id string) (string, error) }
AI接口
type AchanBot ¶
type AchanBot struct {
// contains filtered or unexported fields
}
聊天机器人
func (*AchanBot) MiraiGoModule ¶
func (a *AchanBot) MiraiGoModule() bot.ModuleInfo
Click to show internal directories.
Click to hide internal directories.