core

package
v0.0.0-...-62d7cb0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrInvalidPath          string = "%s is not a valid path"
	ErrInvalidFileType      string = "%s must be of type %s"
	ErrMissingRequiredField string = "missing required field"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

type Core struct {
	// contains filtered or unexported fields
}

Core is the main component of the bot

func NewCore

func NewCore(nick, user, serv string) *Core

NewCore creates a new bot from a Configuration and attempts to make connections.

func (*Core) Kill

func (c *Core) Kill() (errs []error)

Kill shuts down the bot in a sensible way

func (*Core) Start

func (c *Core) Start() (errs []error)

Start is the main entry point for the bot

Jump to

Keyboard shortcuts

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