Documentation ¶
Overview ¶
Package config manages the configuration for macarena.
The following is an example configuration file:
{ "networks": [ { "name": "ShadowNET", "host": "127.0.0.1", "port": 5335, "ssl": false, "pass": "foobang" }, { "name": "ShadowNET-2", "host": "127.0.0.1", "port": 5336, "ssl": false, "pass": "foobang" } ], "myinfo": { "nick": "Foobang", "user": "bar", "real": "fake info" }, "channels": ["#test", "#spam"] }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Networks []Network `json:"networks"` // Networks to connect to MyInfo Info `json:"myinfo"` // Information about the bot Channels []string `json:"channels"` // Channels to relay }
Config manages the configuration for macarena. It is a container for the various data users may want to configure.
type Info ¶
type Info struct { Nick string `json:"nick"` // Nickname of bot User string `json:"user"` // Username of bot Gecos string `json:"real"` // Realname of bot }
Info is info about the bot.
type Network ¶
type Network struct { Name string `json:"name"` // Name of network for logging Host string `json:"host"` // Hostname of server to connect to Port int `json:"port"` // Port of server to connect to UseSSL bool `json:"ssl"` // Use SSL? ServicesPass string `json:"pass"` // Services password (/ns IDENTIFY) }
Network is a container representing an IRC network.
Click to show internal directories.
Click to hide internal directories.