public Task StartAsync(CancellationToken cancellationToken) { _logger.LogInformation("Starting bot."); if (!ConfigurationChecker.CheckConfig(_config, _logger)) { return(Task.CompletedTask); } return(GetStartTask(0)); }
private void OnConfigChanged(object sender, BotConfig config) { _config = config; if (!ConfigurationChecker.CheckConfig(_config, _logger)) { return; } GetStartTask(0); }