allow force setting enabled on config
This commit is contained in:
parent
8a9af0e448
commit
9605c9fe2b
1 changed files with 5 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
|
|
@ -21,6 +22,10 @@ namespace SecondBotEvents.Config
|
||||||
MakeSettings();
|
MakeSettings();
|
||||||
LoadSettings(fromENV, fromFolder);
|
LoadSettings(fromENV, fromFolder);
|
||||||
}
|
}
|
||||||
|
public void setEnabled(bool enabled)
|
||||||
|
{
|
||||||
|
mysettings["Enabled"] = enabled.ToString();
|
||||||
|
}
|
||||||
public bool IsLoaded()
|
public bool IsLoaded()
|
||||||
{
|
{
|
||||||
return loaded;
|
return loaded;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue