Update BetterTracking.cs
This commit is contained in:
parent
2330d962e7
commit
48ed9e5b13
1 changed files with 7 additions and 0 deletions
|
|
@ -26,18 +26,25 @@ namespace BetterSecondbot.Tracking
|
|||
controler = setcontroler;
|
||||
if(controler.Bot.getMyConfig.Setting_Tracker.ToLowerInvariant() == "false")
|
||||
{
|
||||
LogFormater.Info("Tracker - Disabled because set to false");
|
||||
return;
|
||||
}
|
||||
if(int.TryParse(controler.Bot.getMyConfig.Setting_Tracker,out output_channel) == true)
|
||||
{
|
||||
LogFormater.Info("Tracker - Enabled Chat");
|
||||
output_to_channel = true;
|
||||
attachEvents();
|
||||
}
|
||||
else if (controler.Bot.getMyConfig.Setting_Tracker.StartsWith("http") == true)
|
||||
{
|
||||
LogFormater.Info("Tracker - Enabled HTTP");
|
||||
output_to_url = true;
|
||||
attachEvents();
|
||||
}
|
||||
else
|
||||
{
|
||||
LogFormater.Info("Tracker - Disabled not a vaild channel or http");
|
||||
}
|
||||
}
|
||||
protected void attachEvents()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue