study

package
v0.0.0-...-d8cc314 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BotName = ""

Functions

func ChatStudyBot

func ChatStudyBot(ctx *ZeroBot.Ctx, mustSend bool) bool

func Init

func Init(c Config, botName string)

func StudyDataAdd

func StudyDataAdd(q, a string, user uint64) error

func TobeResultAdd

func TobeResultAdd(t *TobeResult, d string)

func TobeResultMax

func TobeResultMax(t *TobeResult) string

选词器

Types

type ChatMutter

type ChatMutter struct {
	gorm.Model
	Mutter string
}

type ChatStudy

type ChatStudy struct {
	gorm.Model
	UserId uint64 `json:"user_id" form:"user_id"`
	Ask    string `json:"ask" form:"ask" gorm:"uniqueIndex:idx_qa"`
	Answer string `json:"answer" form:"answer" gorm:"uniqueIndex:idx_qa"`
}

type Config

type Config struct {
	Enable bool
}

type TobeResult

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

func ToBeResultDo

func ToBeResultDo(ctx *zero.Ctx) TobeResult

Jump to

Keyboard shortcuts

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