From 3c755c0ba2bf9052ee45feba7e5cc18218495a97 Mon Sep 17 00:00:00 2001 From: hgw Date: Mon, 4 Dec 2023 04:12:55 +0000 Subject: [PATCH] Add show_feed_title switch, this will be required later --- commands/cvc.js | 5 +++-- config/example.default.json | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/commands/cvc.js b/commands/cvc.js index 3c78a3a..c70328f 100644 --- a/commands/cvc.js +++ b/commands/cvc.js @@ -45,7 +45,7 @@ function checkValuesExist() { config.floodprotect.flood_protection, config.floodprotect.flood_protection_delay, config.errorhandling.error_logging, config.errorhandling.error_channel, config.errorhandling.error_channel_pass, config.colours.date, config.colours.brackets, config.colours.title, config.colours.author, config.colours.body, config.colours.link, config.colours.help_logo, config.colours.help_motd, config.colours.warning, config.colours.error, - config.feed.useragent, config.feed.body_max_chars, config.feed.time_format, config.feed.timezone, config.feed.default_amount, + config.feed.useragent, config.feed.body_max_chars, config.feed.time_format, config.feed.timezone, config.feed.default_amount, config.feed.show_feed_title, config.twitter.nitter_instances, config.twitter.default_amount, config.misc.display_help_logo, config.misc.logging, config.motd.enable, config.motd.list, config.motd.version @@ -55,7 +55,7 @@ function checkValuesExist() { "config.floodprotect.flood_protection", "config.floodprotect.flood_protection_delay", "config.errorhandling.error_logging","config.errorhandling.error_channel","config.errorhandling.error_channel_pass", "config.colours.date","config.colours.brackets","config.colours.title","config.colours.author","config.colours.body","config.colours.link","config.colours.help_logo","config.colours.help_motd","config.colours.warning","config.colours.error", - "config.feed.useragent","config.feed.body_max_chars","config.feed.time_format","config.feed.timezone","config.feed.default_amount", + "config.feed.useragent","config.feed.body_max_chars","config.feed.time_format","config.feed.timezone","config.feed.default_amount", "config.feed.show_feed_title", "config.twitter.nitter_instances","config.twitter.default_amount", "config.misc.display_help_logo","config.misc.logging", "config.motd.enable","config.motd.list","config.motd.version" @@ -72,6 +72,7 @@ function checkValuesExist() { }) if (fatalConfigError.has('kill') == true ){ + timer(10) consoleLog('[cvc.checkValuesExist] [FATAL] Config is improperly configured, Mercury can not start') sendUpstream('kill') } else { diff --git a/config/example.default.json b/config/example.default.json index 74f2920..6ea5056 100644 --- a/config/example.default.json +++ b/config/example.default.json @@ -41,7 +41,8 @@ "body_max_chars": "200", "time_format": "DD MMM YYYY HH:mm:ss ZZ", "timezone": "Pacific/Auckland", - "default_amount": "5" + "default_amount": "5", + "show_feed_title": "true" }, "twitter": { "nitter_instances": [