bot

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 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
	NotificationMode  string
	SharedMem         sharedmem.SharedMem
	Subscriber        sharedmem.Subscriber
	Rcon              rcon.RconClient
	Logger            *logrus.Logger
	Plugins           []PluginInterface
	Sender            botplug.BotSender
}

func New

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

func (*PluginConfig) PushMessageEntry

func (pc *PluginConfig) PushMessageEntry() *botplug.MessageOutput

func (*PluginConfig) ReceiveMemberJoinEntry

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