Improved startup time hopefuly

This commit is contained in:
Kwoth
2016-12-21 09:39:19 +01:00
parent 39f3ee0190
commit 607f7b4b36
4 changed files with 4 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ namespace NadekoBot.Modules.Games
{
var bot = ChatterBotFactory.Create(ChatterBotType.CLEVERBOT);
CleverbotGuilds = new ConcurrentDictionary<ulong, ChatterBotSession>(
uow.GuildConfigs.GetAll()
NadekoBot.AllGuildConfigs
.Where(gc => gc.CleverbotEnabled)
.ToDictionary(gc => gc.GuildId, gc => bot.CreateSession()));
}