bot

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MARKOV_MAX_WORDS       = 30
	MARKOV_DEFAULT_COUNTER = 50
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot interface {
	// Init starts the bot by receiving messages from the IRC server
	Init()

	// Register register a command handler
	RegisterHandler(cmd string, h HandlerFunc)
}

func NewBot

func NewBot(ircClient irc.IRCClient, enableLogging bool, g generator.Generator, t trainer.Trainer, learningOnly bool) Bot

NewBot create new bot

type HandlerFunc

type HandlerFunc func(irc.IRCClient, *message.Payload) error

type HandlerMap

type HandlerMap map[string]HandlerFunc

Jump to

Keyboard shortcuts

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