Documentation ¶
Index ¶
- Constants
- func CheckPrefix(msg string, pluginMap map[string]types.Plugin) (string, types.Plugin)
- func GetEvents(svc *svc.Svc, EventMin string) []event.Event
- func GetMessageEvent(evs []event.Event, msg string) (event.Event, string, int, error)
- func PluginsMap(plugins []types.Plugin) map[string]types.Plugin
- type BindPlugin
- type CompsPlugin
- type PersonValPlugin
- type PlayerPlugin
- type PreResultPlugin
- type RankPlugin
- type RecordPlugin
- type TryPlugin
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 GetMessageEvent ¶
Types ¶
type BindPlugin ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.