botplug

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotPluginReceiver added in v0.2.3

type BotPluginReceiver interface {
	ReceiveMessageEntry(*MessageInput) *MessageOutput
	ReceiveMemberJoinEntry(*MessageInput) *MessageOutput
}

type BotPluginSender added in v0.2.3

type BotPluginSender interface {
	SendTextMessage(string) error
}

type Config added in v0.2.3

type Config struct {
	ID     uint
	Logger *logrus.Logger
}

func New added in v0.2.3

func New(logger *logrus.Logger) Config

type MessageInput

type MessageInput struct {
	Timestamp time.Time
	Source    *Source
	Messages  []string
}

type MessageOutput

type MessageOutput struct {
	Queue []interface{}
}

type Source

type Source struct {
	Type    string
	UserID  string
	GroupID string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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