SecondBot/SecondBotEvents/Config/HttpConfig.cs
2022-03-17 21:08:02 +00:00

28 lines
No EOL
647 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace SecondBotEvents.Config
{
public class HttpConfig: Config
{
public HttpConfig(bool fromENV, string fromFolder = "") : base(fromENV, fromFolder) { }
protected override void MakeSettings()
{
filename = "http";
settings.Add("enabled");
settings.Add("host");
}
public string GetHost()
{
return ReadSettingAsString("host", "http://*:80");
}
public bool GetEnabled()
{
return ReadSettingAsBool("enabled", false);
}
}
}