Documentation ¶
Index ¶
- func AddPrivate(keys ...string)
- func Broadcast(key, val string)
- type Manager
- func (m *Manager) Listen(msg noye.IrcMessage)
- func (m *Manager) LoadFile(path string) error
- func (m *Manager) LoadScripts(dir string)
- func (m *Manager) Reload(name string) error
- func (m *Manager) ReloadBase() (err error)
- func (m *Manager) Respond(msg noye.Message)
- func (m *Manager) Scripts() map[string]noye.Script
- func (m *Manager) Unload(name string) (err error)
- func (m *Manager) UnloadAll()
- type Script
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPrivate ¶
func AddPrivate(keys ...string)
AddPrivate adds a list of internal keys to the message queue
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager holds a bunch of scripts and a safe proxy to the bot
func (*Manager) Listen ¶
func (m *Manager) Listen(msg noye.IrcMessage)
Listen takes a noye.IrcMessage and delegates it to the scripts
func (*Manager) LoadScripts ¶
LoadScripts tries to load scripts in `dir`
func (*Manager) ReloadBase ¶
ReloadBase reloads the base.js script
Click to show internal directories.
Click to hide internal directories.