Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPipingError ¶
Types ¶
type Base ¶
type Base struct { Config config.Config Sender Sender Log logging.Logger // contains filtered or unexported fields }
func (*Base) AddCommand ¶
func (b *Base) AddCommand(name string, moduleCommand ModuleCommand)
func (*Base) HandleEvent ¶
func (b *Base) HandleEvent(event *irc.Event)
type Command ¶
type Command struct { // Text of the command for example ".command argument1 argument2". Text string // Nick of the person that sent this command for example "nick". Nick string // Target of the message. A channel name or a nick if the bot is // messaged directly. Example: "#channel" or "bot_nick". Target string }
type CommandArguments ¶
type ModuleCommand ¶
type ModuleCommand func(arguments CommandArguments) ([]string, error)
Click to show internal directories.
Click to hide internal directories.