SecondBot/SecondBotEvents/Services/http.cs
Madpeter b16d17f228 wip
2022-03-16 18:36:30 +00:00

33 lines
863 B
C#

using SecondBotEvents.Config;
using System;
using System.Collections.Generic;
using System.Text;
namespace SecondBotEvents.Services
{
internal class http: service
{
http_config myConfig;
public http(EventsSecondBot setMaster) : base(setMaster)
{
myConfig = new http_config(master.fromEnv,master.fromFolder);
}
public override void start()
{
if (myConfig.getEnabled() == true)
{
Console.WriteLine("HTTP service [Enabled]");
return;
}
Console.WriteLine("HTTP service [Disabled]");
}
public override void stop()
{
if (myConfig.getEnabled() == false)
{
return;
}
Console.WriteLine("HTTP service [Stopping]");
}
}
}