Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractFirstLine ¶
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
Bot is an IRC bot and command handler
func (*Bot) EvalCmd ¶
EvalCommand is the callback for the `eval` IRC command. It wraps the passed argument in some boilerplate to make it valid go source, resolves any imports it can, formats it, and executes it on the go playground
func (*Bot) PlayCmd ¶
PlayCmd is the callback for the ~play IRC command, and responds with any errors the playground code has
type BotConfig ¶
type BotConfig struct {
Nick string `toml:"nick"`
User string `toml:"user"`
RealName string `toml:"real_name"`
VersionResponse string `toml:"-"`
SASLUser string `toml:"sasl_user"`
SASLPassword string `toml:"sasl_password"`
CommandPrefix string `toml:"command_prefix"`
Server string `toml:"server"`
UseTLS bool `toml:"use_tls"`
JoinChannels []string `toml:"join_channels"`
Debug bool `toml:"debug"`
}
BotConfig represents the config for Bot, and can be unmarshalled directly from toml
Click to show internal directories.
Click to hide internal directories.