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;