Fix naming and typos
This commit is contained in:
@@ -9,16 +9,14 @@ func Load() {
|
||||
AppConfig = Config{
|
||||
|
||||
Service: Service{
|
||||
Port: getEnv("OPENFIRE_PORT", "5222"),
|
||||
Address: mustGetEnv("OPENFIRE_ADRESS"),
|
||||
Domain: mustGetEnv("OPENFIRE_DOMAIN"),
|
||||
Port: getEnv("OPENFIRE_PORT", "5222"),
|
||||
},
|
||||
Credentials: Credentials{
|
||||
CredentialsFileLocation: getEnv("CREDENTIALS_FILE_LOCATION", "input.json"),
|
||||
},
|
||||
GeneralOptions: GeneralOptions{
|
||||
DelayBetweenMassages: int64(getEnvInt("MASSAGE_DELAY", 120000000000)),
|
||||
StatusMessageDelay: getEnvInt("STATUS_MASSAGE_DELAY", 10),
|
||||
PresenceStatusDelay: int64(getEnvInt("PRESENCE_STATUS_DELAY", 2) * 60),
|
||||
CommandReplyDelay: getEnvInt("COMMAND_REPLY_DELAY", 10),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user