irc_bot

package
v0.0.0-...-f55de0f Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2015 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(filename string, config interface{}) (err error)

func PingHandler

func PingHandler(s ircx.Sender, m *irc.Message)

func RegisterConnect

func RegisterConnect(s ircx.Sender, m *irc.Message)

func RegisterHandlers

func RegisterHandlers(bot *ircx.Bot)

Types

type GlobalConfig

type GlobalConfig struct {
	Token string
}

type IrcConn

type IrcConn struct {
	Host string
	Bot  *ircx.Bot
}

func CreateConnection

func CreateConnection(host string) *IrcConn

func (*IrcConn) Dial

func (ic *IrcConn) Dial()

func (*IrcConn) Loop

func (ic *IrcConn) Loop()

type Proxy

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

Proxy contains the current state of the proxy server

func Connect

func Connect(config ProxyConfig) (*Proxy, error)

func (*Proxy) ExtendReadDeadline

func (p *Proxy) ExtendReadDeadline()

func (*Proxy) Process

func (p *Proxy) Process(msg *irc.Message)

func (*Proxy) ReadMessages

func (p *Proxy) ReadMessages(ch chan<- *irc.Message, failure chan<- error)

func (*Proxy) Reconnect

func (p *Proxy) Reconnect() error

Creates a new proxy object, "reconnects" and transfers everything to the existing proxy object.

func (*Proxy) Run

func (p *Proxy) Run()

func (*Proxy) Send

func (p *Proxy) Send(msg *irc.Message)

func (*Proxy) SendFromConsole

func (p *Proxy) SendFromConsole()

type ProxyConfig

type ProxyConfig struct {
	Host     string
	Port     int
	Password string
	Nick     string
	RealName string
}

Jump to

Keyboard shortcuts

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