My changes

Signed-off-by: Odyssey <odyssey346@disroot.org>
This commit is contained in:
Odyssey
2022-10-18 15:24:08 +02:00
parent 712ef1c8ca
commit f6e5674b63
10 changed files with 168 additions and 48 deletions

View File

@@ -18,10 +18,10 @@ func CheckConfig() {
} else {
log.Println("[Segfautils] ✅ segfautils.auth_token is set!")
}
if config.WebhookURL() == "YOURWEBHOOKURL" || config.WebhookURL() == "" {
if config.ShoutrrrURL() == "" {
log.Fatal("[Segfautils] ❌ You need to set the Webhook URL you'd like to use in the config file. Check documentation for more information.")
} else {
log.Println("[Segfautils] ✅ segfautils.webhook_url is set!")
log.Println("[Segfautils] ✅ segfautils.shoutrrr_url is set!")
}
// Hcaptcha stuff
if config.HCaptchaSecretKey() == "YOURSECRETKEY" || config.HCaptchaSecretKey() == "" {