Documentation
¶
Index ¶
- func Parse(raw string) noye.IrcMessage
- func ParseUser(raw string) noye.User
- type Bot
- func (b *Bot) Close()
- func (b *Bot) Dial(addr, nick, user string) (err error)
- func (b *Bot) Join(t string)
- func (b *Bot) Manager() noye.Manager
- func (b *Bot) Part(t string)
- func (b *Bot) Privmsg(t, msg string)
- func (b *Bot) Quit()
- func (b *Bot) Ready() <-chan struct{}
- func (b *Bot) Send(f string, a ...interface{})
- func (b *Bot) Wait() <-chan struct{}
- type Connection
- type Signal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
func Parse(raw string) noye.IrcMessage
Parse takes a raw message and turns it into an IrcMessage
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
Bot encapsulates all the parts to run a bot
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection is a simple connection to an irc server
func (*Connection) Dial ¶
func (c *Connection) Dial(addr string) (err error)
Dial uses a provided addr:port and opens a connection, returning any error
func (*Connection) ReadLine ¶
func (c *Connection) ReadLine() (string, error)
ReadLine returns a string, error after reading the next line from the connection
func (*Connection) WriteLine ¶
func (c *Connection) WriteLine(raw string)
WriteLine writes the 'raw' string to the connection
Click to show internal directories.
Click to hide internal directories.