mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-03 21:12:03 -04:00
New setting to control the initial state of the almanac shill
This commit is contained in:
@@ -245,6 +245,12 @@ public class BotServices
|
||||
private async Task BuildAlmanacShill()
|
||||
{
|
||||
AlmanacShill = new AlmanacShill(_chatBot);
|
||||
var initialState = await Helpers.GetValue(BuiltIn.Keys.BotAlmanacInitialState);
|
||||
if (!initialState.ToBoolean())
|
||||
{
|
||||
_logger.Info("Built the almanac service but not enabling as initial state is false");
|
||||
return;
|
||||
}
|
||||
AlmanacShill.StartShillTask();
|
||||
_logger.Info("Built the almanac shill task");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user