Fix attempts to start broken bots

This commit is contained in:
JustArchi
2017-05-14 16:02:39 +02:00
parent a7938fad8b
commit 548f8128c3

View File

@@ -1140,6 +1140,10 @@ namespace ArchiSteamFarm {
}
private async Task InitStart() {
if ((BotConfig == null) || (BotDatabase == null)) {
return;
}
if (!BotConfig.Enabled) {
ArchiLogger.LogGenericInfo(Strings.BotInstanceNotStartingBecauseDisabled);
return;