Update TriggerOnEventService.cs
This commit is contained in:
parent
d2e6d7200d
commit
1e569e07ca
1 changed files with 3 additions and 0 deletions
|
|
@ -138,6 +138,7 @@ namespace SecondBotEvents.Services
|
||||||
MyCustomEvents.Add(Event.Source, new List<CustomOnEvent>());
|
MyCustomEvents.Add(Event.Source, new List<CustomOnEvent>());
|
||||||
}
|
}
|
||||||
MyCustomEvents[Event.Source].Add(Event);
|
MyCustomEvents[Event.Source].Add(Event);
|
||||||
|
LogFormater.Info("OnEvent Service - Event " + loop.ToString() + " is being tracked");
|
||||||
loop++;
|
loop++;
|
||||||
}
|
}
|
||||||
myConfig.unloadEvents(); // remove unneeded copy of events from the config as we wont be using it
|
myConfig.unloadEvents(); // remove unneeded copy of events from the config as we wont be using it
|
||||||
|
|
@ -145,7 +146,9 @@ namespace SecondBotEvents.Services
|
||||||
{
|
{
|
||||||
myConfig.setEnabled(false);
|
myConfig.setEnabled(false);
|
||||||
LogFormater.Info("OnEvent Service - failed to load any events stopping");
|
LogFormater.Info("OnEvent Service - failed to load any events stopping");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
LogFormater.Info("OnEvent Service - loaded "+MyCustomEvents.Count.ToString()+" events");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue