Documentation ¶
Index ¶
- func ReadString(reader *strings.Reader, until byte) string
- func ReadTags(reader *strings.Reader) map[string]string
- type Bot
- func (bot *Bot) BanUser(channel string, user string) error
- func (bot *Bot) DeleteMessage(message *Message) error
- func (bot *Bot) GetClient() *Client
- func (bot *Bot) Join(channel string) error
- func (bot *Bot) OnLogin(f func(*Bot))
- func (bot *Bot) OnMessage(f func(*Bot, *Message))
- func (bot *Bot) Run()
- func (bot *Bot) SendMessage(message *Message) error
- func (bot *Bot) Start() error
- type Client
- func (client *Client) AddHandler(command string, f func(*Command) bool)
- func (client *Client) Auth() error
- func (client *Client) CapReq(cap string) error
- func (client *Client) Close()
- func (client *Client) Connect(host string) error
- func (client *Client) Handle() error
- func (client *Client) Join(channel string) error
- func (client *Client) Send(command *Command) error
- type Command
- type EventHandler
- type Message
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
func (*Bot) DeleteMessage ¶
func (*Bot) SendMessage ¶
type Command ¶
type Command struct { Tags map[string]string Prefix string Command string Args []string Suffix string }
func ParsePacket ¶
type EventHandler ¶
type EventHandler struct {
// contains filtered or unexported fields
}
type Message ¶
func ParseMessage ¶
Click to show internal directories.
Click to hide internal directories.