Added execute single message

This commit is contained in:
2021-09-27 10:23:31 +02:00
parent 2c495aa3e4
commit 7765cb32a9
5 changed files with 22 additions and 17 deletions

View File

@@ -15,8 +15,9 @@ func Load() {
CredentialsFileLocation: getEnv("CREDENTIALS_FILE_LOCATION", "input.json"),
},
GeneralOptions: GeneralOptions{
PresenceStatusDelay: int64(getEnvInt("PRESENCE_STATUS_DELAY", 2) * 60),
CommandReplyDelay: getEnvInt("COMMAND_REPLY_DELAY", 10),
PresenceStatusDelay: int64(getEnvInt("PRESENCE_STATUS_DELAY", 2) * 60),
CommandReplyDelay: getEnvInt("COMMAND_REPLY_DELAY", 10),
ExecuteSingleStatusMessage: getEnvBool("EXECUTE_SIGLE_STATUS_MESSAGE"),
},
}
}

View File

@@ -21,6 +21,7 @@ type Credentials struct {
// GeneralOptions contains information for general configuration options
type GeneralOptions struct {
PresenceStatusDelay int64
CommandReplyDelay int
PresenceStatusDelay int64
CommandReplyDelay int
ExecuteSingleStatusMessage bool
}