Added execute single message
This commit is contained in:
@@ -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"),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user