Commit 9a9916c5 authored by Wizkiller96's avatar Wizkiller96

Minor change to XpService.cs

parent 7b778ce7
Pipeline #171021720 passed with stage
in 2 minutes and 5 seconds
......@@ -92,7 +92,10 @@ namespace WizBot.Modules.Xp.Services
}
//load settings
var allGuildConfigs = bot.AllGuildConfigs.Where(x => x.XpSettings != null);
var allGuildConfigs = bot.AllGuildConfigs
.Where(x => x.XpSettings != null)
.ToList();
_excludedChannels = allGuildConfigs
.ToDictionary(
x => x.GuildId,
......@@ -118,6 +121,8 @@ namespace WizBot.Modules.Xp.Services
.Select(x => x.GuildId));
_cmd.OnMessageNoTrigger += _cmd_OnMessageNoTrigger;
//#if !GLOBAL_WIZBOT
_client.UserVoiceStateUpdated += _client_OnUserVoiceStateUpdated;
// Scan guilds on startup.
......@@ -126,7 +131,7 @@ namespace WizBot.Modules.Xp.Services
{
_client_OnGuildAvailable(guild);
}
//#endif
updateXpTask = Task.Run(UpdateLoop);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment