From a0cc3c3e0aba4d5d3a0f8f51e588c46ff3fd2027 Mon Sep 17 00:00:00 2001 From: null31 Date: Tue, 24 Sep 2024 22:23:04 +0200 Subject: [PATCH] Add Debug option to the config --- config.json.example | 3 ++- utils/config.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config.json.example b/config.json.example index 105a3f9..1259934 100644 --- a/config.json.example +++ b/config.json.example @@ -5,5 +5,6 @@ "nickname": "Some_nick", "channels": ["#channel", "#channel2"], "geoip_database": "/app/geolite2-city.mmdb", - "geoip_asn": "/app/geolite2-asn.mmdb" + "geoip_asn": "/app/geolite2-asn.mmdb", + "debug": false } diff --git a/utils/config.go b/utils/config.go index 7b9e7df..fe7840a 100644 --- a/utils/config.go +++ b/utils/config.go @@ -14,6 +14,7 @@ type Config struct { Channels []string `json:"channels"` GeoIPDatabase string `json:"geoip_database"` GeoIPASN string `json:"geoip_asn"` + Debug bool `json:"debug"` } func LoadConfig(file string) (Config, error) {