domain

package
v0.0.0-...-4cd1d87 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTargetMessage

func IsTargetMessage(botUser *model.User, message *model.Message) (bool, bool, string)

IsTargetMessage checks if the given message is a target.

func IsTargetMessageEvent

func IsTargetMessageEvent(botUser *model.User, messageEvent *model.MessageEvent) (bool, bool, string)

IsTargetMessageEvent checks if the given message event is a target.

Types

type ClassifierService

type ClassifierService interface {
	Classify(message *model.Message) (*ClassifyResult, error)
}

type ClassifyResult

type ClassifyResult struct {
	Class      string
	Confidence float64
}

Jump to

Keyboard shortcuts

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