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 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 }
Click to show internal directories.
Click to hide internal directories.