SecondBot/SecondBotEvents/Config/HttpConfig.cs
2025-07-09 22:42:15 +01:00

28 lines
No EOL
704 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace SecondBotEvents.Config
{
public class HttpConfig(bool fromENV, string fromFolder = "") : Config(fromENV, fromFolder)
{
protected override void MakeSettings()
{
filename = "http";
settings.Add("Enabled");
settings.Add("HideStatusOutput");
settings.Add("DisableCommandValidation");
}
public bool GetEnabled()
{
return ReadSettingAsBool("Enabled", true);
}
public bool GetDisableCommandValidation()
{
return ReadSettingAsBool("DisableCommandValidation", false);
}
}
}