core

package
v0.0.0-...-a82784a Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CmdBackup
	CmdRemember
	CmdForget
	CmdLink
	CmdDice
	CmdVideo
	CmdPhoto

	OpAdd
	OpRem

	KindCommand
	KindCallout
	KindCalloutCmd
	KindTrigger
	KindTriggerCmd
)

Variables

View Source
var (
	ErrParseNoChatID  error = errors.New("chat id not defined")
	ErrParseNoMessage error = errors.New("message not defined")
)
View Source
var (
	ErrNotFound    error = errors.New("not found")
	ErrURLNotFound error = errors.New("url not found")
)

Functions

func Handler

func Listen

func Listen(cfg *config.Config) error

Types

type BotRequest

type BotRequest struct {
	Kind      int
	Operation int
	Command   int
	Abraxas   string
	Rest      string
	// Remember
	RememberKind    int
	RememberAbraxas string
	RememberRest    string
}

Jump to

Keyboard shortcuts

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