allow force setting enabled on config

This commit is contained in:
Madpeter 2023-11-30 17:28:38 +00:00
parent 8a9af0e448
commit 9605c9fe2b

View file

@ -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;