Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UserHomeDir ¶
func UserHomeDir() string
Types ¶
type Bot ¶
type Bot struct { Logger *log.Logger Config Configuration Connection *irc.Connection Commands []*Command WorkDirectory string DB *gorm.DB }
func (*Bot) AddCallback ¶
Register an IRC callback.
func (*Bot) AddCommand ¶
type Command ¶
type Configuration ¶
type Configuration struct { Host string Nick string Username string Password string SASL bool CommandOperator string Channels []string Daddies []string Plugins []string Debug bool Identify string Instances int SSL bool }
func ConfigFromJSON ¶
func ConfigFromJSON(fileName string, filePath string) (Configuration, error)
Create a Configuration from a JSON file.
type Options ¶
func GetDefaultOptions ¶
func GetDefaultOptions() Options
type Plugin ¶
type PluginManager ¶
type PluginManager struct { Plugins []*Plugin // contains filtered or unexported fields }
func NewPluginManager ¶
func NewPluginManager(t *Bot) PluginManager
func (*PluginManager) BuildPlugins ¶
func (pm *PluginManager) BuildPlugins()
func (*PluginManager) DisablePlugin ¶
func (pm *PluginManager) DisablePlugin(name string) error
func (*PluginManager) EnablePlugin ¶
func (pm *PluginManager) EnablePlugin(name string) error
func (*PluginManager) LoadPlugins ¶
func (pm *PluginManager) LoadPlugins()
func (*PluginManager) Register ¶
func (pm *PluginManager) Register() error
Click to show internal directories.
Click to hide internal directories.