shared

package
v0.0.0-...-7a43745 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Unlicense Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot interface {
	Register(command string, f PluginCallFunc)

	Send(context MessageContext, message string)
}

type Config

type Config struct {
	PluginPath string
}

type MessageContext

type MessageContext struct {
	Sender  string
	Target  string
	Source  string
	Message string
}

type PluginCallFunc

type PluginCallFunc = func(bot Bot, context MessageContext, arguments []string, config Config) error

type PluginRunFunc

type PluginRunFunc = func(bot Bot, stop <-chan struct{})

type PluginSetupFunc

type PluginSetupFunc = func(bot Bot)

Jump to

Keyboard shortcuts

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