From 9605c9fe2ba10a516f9a121c138737350583de21 Mon Sep 17 00:00:00 2001 From: Madpeter <57852827+Madpeterz@users.noreply.github.com> Date: Thu, 30 Nov 2023 17:28:38 +0000 Subject: [PATCH] allow force setting enabled on config --- SecondBotEvents/Config/config.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SecondBotEvents/Config/config.cs b/SecondBotEvents/Config/config.cs index 8c63e80..490f171 100644 --- a/SecondBotEvents/Config/config.cs +++ b/SecondBotEvents/Config/config.cs @@ -2,6 +2,7 @@ using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; +using System.Linq; using System.Reflection; using System.Text; @@ -21,6 +22,10 @@ namespace SecondBotEvents.Config MakeSettings(); LoadSettings(fromENV, fromFolder); } + public void setEnabled(bool enabled) + { + mysettings["Enabled"] = enabled.ToString(); + } public bool IsLoaded() { return loaded;