Fix naming and typos

This commit is contained in:
Senad Uka
2021-09-20 13:30:35 +02:00
committed by nedim.uka
parent 272a8c43ac
commit c8627a42b2
7 changed files with 13 additions and 19 deletions

View File

@@ -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),
},
}
}