Documentation ¶
Index ¶
- type CommandAction
- type IrcBot
- func (irc *IrcBot) AddBuiltins(showHelp bool)
- func (irc *IrcBot) AddCommand(name string, action CommandAction) *triggers.Command
- func (irc *IrcBot) Close() error
- func (irc *IrcBot) Config() *bot.Configuration
- func (irc *IrcBot) DB() *sql.DB
- func (irc *IrcBot) Logger() log.Logger
- func (irc *IrcBot) Msg(who, what string)
- func (irc *IrcBot) RegisterCommands(commands []*triggers.Command) error
- func (irc *IrcBot) Reply(m *hbot.Message, what string)
- func (irc *IrcBot) Run()
- func (irc *IrcBot) Topic(channel string, what string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IrcBot ¶
type IrcBot struct {
// contains filtered or unexported fields
}
This is the entrypoint for ircbot.
func Init ¶
Initializes the bot. Pass it a configfile and you'll have in return a functioning instance of an IRC bot.
func (*IrcBot) AddBuiltins ¶
func (*IrcBot) AddCommand ¶
func (irc *IrcBot) AddCommand(name string, action CommandAction) *triggers.Command
Adds a non-configured command to the registry, that can be then configured.
func (*IrcBot) RegisterCommands ¶
Click to show internal directories.
Click to hide internal directories.