bot

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginConfig

type PluginConfig struct {
	MinecraftHostname string
	SharedMem         sharedmem.SharedMem
	Rcon              *rcon.Client
	Logger            *logrus.Logger
	Plugins           []PluginInterface
}

func New

func New(minecraftHostname string, m sharedmem.SharedMem, rcon *rcon.Client, logger *logrus.Logger) *PluginConfig

func (*PluginConfig) ReceiveMemberJoinEntry added in v0.1.1

func (pc *PluginConfig) ReceiveMemberJoinEntry(input *botplug.MessageInput) *botplug.MessageOutput

func (*PluginConfig) ReceiveMessageEntry

func (pc *PluginConfig) ReceiveMessageEntry(input *botplug.MessageInput) *botplug.MessageOutput

type PluginInterface

type PluginInterface interface {
	CommandName() string
	ReceiveMessage(*botplug.MessageInput) *botplug.MessageOutput
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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