bot

package
v5.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 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 {
	Connection *irc.Connection
	// contains filtered or unexported fields
}

func NewBot

func NewBot(server, password, nickname, realname string, useTLS, useSasl bool, saslUser, saslPass string,
	logger irc.Logger, floodProfile string, initialChannel string) *Bot

func (*Bot) AddCallback added in v5.0.1

func (b *Bot) AddCallback(s string, f func(ircmsg.Message)) ircevent.CallbackID

func (*Bot) CurrentNick added in v5.0.1

func (b *Bot) CurrentNick() string

func (*Bot) GetChannels

func (b *Bot) GetChannels() []string

func (*Bot) RemoveCallback added in v5.0.1

func (b *Bot) RemoveCallback(id ircevent.CallbackID)

func (*Bot) Start

func (b *Bot) Start(signals chan os.Signal) error

Jump to

Keyboard shortcuts

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