Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Current = DefaultConfig()
Current loaded configuration.
Functions ¶
func LoadSettings ¶
func LoadSettings() error
LoadSettings reads a chatbot.toml from disk if available.
Types ¶
type Config ¶
type Config struct { Version int // will re-save your chatbot.toml on migrations // Chat server config BareRTC BareRTC // Profile settings for their chat username Profile Profile WebSocketReadLimit int64 }
Config for your BareBot robot.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns sensible defaults and will write the initial chatbot.toml file to disk.
Click to show internal directories.
Click to hide internal directories.