improve grammar here
Signed-off-by: Odyssey <odyssey346@disroot.org>
This commit is contained in:
parent
427bec5081
commit
11a792d96c
@ -15,7 +15,7 @@ func AuthToken() string {
|
|||||||
viper.AddConfigPath("./data")
|
viper.AddConfigPath("./data")
|
||||||
err := viper.ReadInConfig()
|
err := viper.ReadInConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("Error reading config for getting segfautils.auth_token", err.Error())
|
log.Println("Error reading config. Error getting: segfautils.auth_token", err.Error())
|
||||||
}
|
}
|
||||||
result := viper.GetString("segfautils.auth_token")
|
result := viper.GetString("segfautils.auth_token")
|
||||||
return result
|
return result
|
||||||
|
@ -11,7 +11,7 @@ func HCaptchaSecretKey() string {
|
|||||||
viper.AddConfigPath("./data")
|
viper.AddConfigPath("./data")
|
||||||
err := viper.ReadInConfig()
|
err := viper.ReadInConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("Error reading config for getting hcaptcha.secret_key", err.Error())
|
log.Println("Error reading config. Error getting: hcaptcha.secret_key", err.Error())
|
||||||
}
|
}
|
||||||
result := viper.GetString("hcaptcha.secret_key")
|
result := viper.GetString("hcaptcha.secret_key")
|
||||||
return result
|
return result
|
||||||
|
@ -11,7 +11,7 @@ func HCaptchaSiteKey() string {
|
|||||||
viper.AddConfigPath("./data")
|
viper.AddConfigPath("./data")
|
||||||
err := viper.ReadInConfig()
|
err := viper.ReadInConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("Error reading config for getting hcaptcha.site_key", err.Error())
|
log.Println("Error reading config. Error getting: hcaptcha.site_key", err.Error())
|
||||||
}
|
}
|
||||||
result := viper.GetString("hcaptcha.site_key")
|
result := viper.GetString("hcaptcha.site_key")
|
||||||
return result
|
return result
|
||||||
|
@ -11,7 +11,7 @@ func OptForm() string {
|
|||||||
viper.AddConfigPath("./data")
|
viper.AddConfigPath("./data")
|
||||||
err := viper.ReadInConfig()
|
err := viper.ReadInConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("Error reading config for getting options.form", err.Error())
|
log.Println("Error reading config. Error getting: options.form", err.Error())
|
||||||
}
|
}
|
||||||
result := viper.GetString("options.form")
|
result := viper.GetString("options.form")
|
||||||
return result
|
return result
|
||||||
|
@ -11,7 +11,7 @@ func OptAnn() string {
|
|||||||
viper.AddConfigPath("./data")
|
viper.AddConfigPath("./data")
|
||||||
err := viper.ReadInConfig()
|
err := viper.ReadInConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("Error reading config for getting options.announce", err.Error())
|
log.Println("Error reading config. Error getting: options.announce", err.Error())
|
||||||
}
|
}
|
||||||
result := viper.GetString("options.announce")
|
result := viper.GetString("options.announce")
|
||||||
return result
|
return result
|
||||||
|
@ -12,7 +12,7 @@ func Port() string {
|
|||||||
viper.AddConfigPath("./data")
|
viper.AddConfigPath("./data")
|
||||||
err := viper.ReadInConfig()
|
err := viper.ReadInConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("Error reading config for getting segfautils.port", err.Error())
|
log.Println("Error reading config. Error getting: segfautils.port", err.Error())
|
||||||
}
|
}
|
||||||
result := strconv.Itoa(viper.GetInt("segfautils.port"))
|
result := strconv.Itoa(viper.GetInt("segfautils.port"))
|
||||||
return result
|
return result
|
||||||
|
@ -11,7 +11,7 @@ func WebhookURL() string {
|
|||||||
viper.AddConfigPath("./data")
|
viper.AddConfigPath("./data")
|
||||||
err := viper.ReadInConfig()
|
err := viper.ReadInConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("Error reading config for getting segfautils.webhook_url", err.Error())
|
log.Println("Error reading config. Error getting: segfautils.webhook_url", err.Error())
|
||||||
}
|
}
|
||||||
result := viper.GetString("segfautils.webhook_url")
|
result := viper.GetString("segfautils.webhook_url")
|
||||||
return result
|
return result
|
||||||
|
Reference in New Issue
Block a user