Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DBCon *sql.DB
View Source
var Server map[string]ServerConfig
Server contains entires for each registered server DEPRECEATED: Use the sql package instead and store your data in tables
Functions ¶
func GenerateMysqlLink ¶
func LoadServerConfig ¶
func LoadServerConfig(filename string) (conf map[string]ServerConfig, err error)
LoadServerConfig loads the serverconfig from a given file DEPRECEATED: Use the sql package instead and store your data in tables
Types ¶
type Bot ¶
func LoadBotConfig ¶
type Mysql ¶
func LoadMysqlConfig ¶
type ServerConfig ¶
type ServerConfig struct { ID string Prefix string VerifiedRole string Ranks map[string]string AdminRole string Guild struct { ID string ApiKey string Role []struct { Name string // GW2NAME ID string // DISCORD ID } } // The guildsync module GuildSync struct { MemberRole string } // The wvw module WvW struct { DefaultWorld int } // The role module Role struct { Roles map[string]string } }
ServerConfig holds static data for a server required by modules DEPRECEATED: Use the sql package instead and store your data in tables
Click to show internal directories.
Click to hide internal directories.