Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alias ¶
type Alias struct {
// Match is the alias match.
Match string
// Action is the action performed on a match.
Action []string
}
Alias is a command alias
type CharacterConfig ¶
type CharacterConfig struct {
// Name is the character name.
Name string
// Password is the character password. TODO: encrypt this? bare minimum, hash it.
Password string
// Address is the mud address
Address string
// AutoLogin is an optional auto-login sequence.
AutoLogin []string `toml:"auto_login"`
// Aliases are a characters aliases.
Aliases map[string]*Alias `toml:"aliases"`
// contains filtered or unexported fields
}
CharacterConfig is a character configuration.
func (*CharacterConfig) Validate ¶
func (c *CharacterConfig) Validate() error
Validate a configuration, error if a required value is missing and set defaults (if a value is not provided) when not required.
type Config ¶
type Config struct {
// CmdPrefix is the prefix used for client commands, by default this
// is `/`.
CmdPrefix string
// CharacterPath is the file path to look for characters in.
CharacterPath string
}
Config houses non-character configuration options.