bot

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 6 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 struct {
	// contains filtered or unexported fields
}

func NewBot

func NewBot(logger *logrus.Logger, ircClient oodle.IRCClient) *Bot

func (*Bot) Commands added in v1.0.0

func (bot *Bot) Commands() []oodle.Command

func (*Bot) RegisterCommands added in v1.4.0

func (bot *Bot) RegisterCommands(commands ...oodle.Command)

func (*Bot) RegisterTriggers added in v1.4.0

func (bot *Bot) RegisterTriggers(triggers ...oodle.Trigger)

func (*Bot) Start added in v0.2.0

func (bot *Bot) Start() error

Start makes a conn., stats a readloop and uses the config

func (*Bot) Stop

func (bot *Bot) Stop()

Stop stops the bot in a graceful manner

Jump to

Keyboard shortcuts

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