plugin

package
v0.0.0-...-65ea52f Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const MaxKeyLength = 16
View Source
const MetaFileName = "meta.json"
View Source
const MetaImageFileName = "img"

Variables

This section is empty.

Functions

func CheckPrefix

func CheckPrefix(msg string, pluginMap map[string]types.Plugin) (string, types.Plugin)

func GetEvents

func GetEvents(svc *svc.Svc, EventMin string) []event.Event

func GetMessageEvent

func GetMessageEvent(evs []event.Event, msg string) (event.Event, string, int, error)

func PluginsMap

func PluginsMap(plugins []types.Plugin) map[string]types.Plugin

Types

type BindPlugin

type BindPlugin struct {
	Svc *svc.Svc
}

func (*BindPlugin) Do

func (b *BindPlugin) Do(message types.InMessage) (*types.OutMessage, error)

func (*BindPlugin) Help

func (b *BindPlugin) Help() string

func (*BindPlugin) ID

func (b *BindPlugin) ID() []string

type CompsPlugin

type CompsPlugin struct {
	Svc *svc.Svc
}

func (*CompsPlugin) Do

func (c *CompsPlugin) Do(message types.InMessage) (*types.OutMessage, error)

func (*CompsPlugin) Help

func (c *CompsPlugin) Help() string

func (*CompsPlugin) ID

func (c *CompsPlugin) ID() []string

type PersonValPlugin

type PersonValPlugin struct {
	Svc *svc.Svc
	// contains filtered or unexported fields
}

func (*PersonValPlugin) Do

func (p *PersonValPlugin) Do(message types.InMessage) (*types.OutMessage, error)

func (*PersonValPlugin) Help

func (p *PersonValPlugin) Help() string

func (*PersonValPlugin) ID

func (p *PersonValPlugin) ID() []string

type PlayerPlugin

type PlayerPlugin struct {
	Svc *svc.Svc
}

func (*PlayerPlugin) Do

func (c *PlayerPlugin) Do(message types.InMessage) (*types.OutMessage, error)

func (*PlayerPlugin) Help

func (c *PlayerPlugin) Help() string

func (*PlayerPlugin) ID

func (c *PlayerPlugin) ID() []string

type PreResultPlugin

type PreResultPlugin struct {
	Svc *svc.Svc
}

func (*PreResultPlugin) Do

func (c *PreResultPlugin) Do(message types.InMessage) (*types.OutMessage, error)

func (*PreResultPlugin) Help

func (c *PreResultPlugin) Help() string

func (*PreResultPlugin) ID

func (c *PreResultPlugin) ID() []string

type RankPlugin

type RankPlugin struct {
	Svc *svc.Svc
}

func (*RankPlugin) Do

func (r *RankPlugin) Do(message types.InMessage) (*types.OutMessage, error)

func (*RankPlugin) Help

func (r *RankPlugin) Help() string

func (*RankPlugin) ID

func (r *RankPlugin) ID() []string

type RecordPlugin

type RecordPlugin struct {
	Svc *svc.Svc
}

func (*RecordPlugin) Do

func (r *RecordPlugin) Do(message types.InMessage) (*types.OutMessage, error)

func (*RecordPlugin) Help

func (r *RecordPlugin) Help() string

func (*RecordPlugin) ID

func (r *RecordPlugin) ID() []string

type TryPlugin

type TryPlugin struct {
	Svc *svc.Svc
	// contains filtered or unexported fields
}

func (*TryPlugin) Do

func (t *TryPlugin) Do(message types.InMessage) (*types.OutMessage, error)

func (*TryPlugin) Help

func (t *TryPlugin) Help() string

func (*TryPlugin) ID

func (t *TryPlugin) ID() []string

Jump to

Keyboard shortcuts

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