plugin

package
v0.0.0-...-31439ab Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const MaxKeyLength = 16

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 NewPlugins

func NewPlugins(svc *svc.Svc) []types.Plugin

func PluginsMap

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

func RemoveID

func RemoveID(message string, id []string) string

Types

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 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 TryPlugin

type TryPlugin struct {
	Svc *svc.Svc
}

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