Fixed compile error
This commit is contained in:
parent
85e1839991
commit
4b57d874ba
@ -28,6 +28,7 @@ using NadekoBot.Services.Help;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using NadekoBot.Services.Pokemon;
|
using NadekoBot.Services.Pokemon;
|
||||||
using NadekoBot.DataStructures.ShardCom;
|
using NadekoBot.DataStructures.ShardCom;
|
||||||
|
using NadekoBot.DataStructures;
|
||||||
|
|
||||||
namespace NadekoBot
|
namespace NadekoBot
|
||||||
{
|
{
|
||||||
@ -335,13 +336,14 @@ namespace NadekoBot
|
|||||||
// .Select(x => x.Key + $"({x.Count()})")));
|
// .Select(x => x.Key + $"({x.Count()})")));
|
||||||
|
|
||||||
//unload modules which are not available on the public bot
|
//unload modules which are not available on the public bot
|
||||||
#if GLOBAL_NADEKO
|
#if GLOBAL_NADEKO
|
||||||
CommandService
|
CommandService
|
||||||
.Modules
|
.Modules
|
||||||
.ToArray()
|
.ToArray()
|
||||||
.Where(x => x.Preconditions.Any(y => y.GetType() == typeof(NoPublicBot)))
|
.Where(x => x.Preconditions.Any(y => y.GetType() == typeof(NoPublicBot)))
|
||||||
.ForEach(x => CommandService.RemoveModuleAsync(x));
|
.ForEach(x => CommandService.RemoveModuleAsync(x));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Ready = true;
|
Ready = true;
|
||||||
_log.Info($"Shard {ShardId} ready.");
|
_log.Info($"Shard {ShardId} ready.");
|
||||||
//_log.Info(await stats.Print().ConfigureAwait(false));
|
//_log.Info(await stats.Print().ConfigureAwait(false));
|
||||||
|
Loading…
Reference in New Issue
Block a user