Merge branch 'dev' into b2

This commit is contained in:
Kwoth
2016-12-21 09:58:13 +01:00
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()));
}