bot

package
v0.0.0-...-2471955 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2014 License: MIT Imports: 13 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 {
	Quitted chan bool
	// contains filtered or unexported fields
}

func New

func New(cfg *config.Settings) (*Bot, error)

func (*Bot) AutoVoice

func (bot *Bot) AutoVoice(event *irc.Event)

Automatically give voice to users in channels in which the bot has Op

func (*Bot) Connect

func (bot *Bot) Connect() error

func (*Bot) InitCallbacks

func (bot *Bot) InitCallbacks() error

func (*Bot) JoinChannels

func (bot *Bot) JoinChannels(event *irc.Event)

Function for re-joining channels

func (*Bot) Quit

func (bot *Bot) Quit()

func (*Bot) ReclaimNick

func (bot *Bot) ReclaimNick(event *irc.Event)

Handler for reclaiming a stolen nick

func (*Bot) RunBuiltinCommands

func (bot *Bot) RunBuiltinCommands(event *irc.Event)

func (*Bot) SetBotState

func (bot *Bot) SetBotState(event *irc.Event)

Function for setting up the botstate

func (*Bot) ShowCommandHelp

func (bot *Bot) ShowCommandHelp(source, nick, cmd string)

Print out the commands available

func (*Bot) ShowCommandList

func (bot *Bot) ShowCommandList(source, nick string)

Print out the commands available

func (*Bot) VoiceAll

func (bot *Bot) VoiceAll(event *irc.Event)

Give voice to all users that don't have it yet

Jump to

Keyboard shortcuts

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