Cleanup
This commit is contained in:
@ -55,8 +55,8 @@ namespace NadekoBot.Core.Services.Database.Models
|
||||
public bool FilterInvites { get; set; }
|
||||
public HashSet<FilterChannelId> FilterInvitesChannelIds { get; set; } = new HashSet<FilterChannelId>();
|
||||
|
||||
public bool FilterLinks { get; set; }
|
||||
public HashSet<FilterLinksChannelId> FilterLinksChannels { get; set; } = new HashSet<FilterLinksChannelId>();
|
||||
//public bool FilterLinks { get; set; }
|
||||
//public HashSet<FilterLinksChannelId> FilterLinksChannels { get; set; } = new HashSet<FilterLinksChannelId>();
|
||||
|
||||
public bool FilterWords { get; set; }
|
||||
public HashSet<FilteredWord> FilteredWords { get; set; } = new HashSet<FilteredWord>();
|
||||
|
@ -185,7 +185,7 @@ namespace NadekoBot
|
||||
throw;
|
||||
}
|
||||
toReturn.Add(x);
|
||||
_log.Info("Loaded {0} typereader.", x.GetType().Name);
|
||||
//_log.Info("Loaded {0} typereader.", x.GetType().Name);
|
||||
}
|
||||
|
||||
return toReturn;
|
||||
@ -250,7 +250,15 @@ namespace NadekoBot
|
||||
await LoginAsync(Credentials.Token).ConfigureAwait(false);
|
||||
|
||||
_log.Info($"Shard {Client.ShardId} loading services...");
|
||||
AddServices();
|
||||
try
|
||||
{
|
||||
AddServices();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_log.Error(ex);
|
||||
throw;
|
||||
}
|
||||
|
||||
sw.Stop();
|
||||
_log.Info($"Shard {Client.ShardId} connected in {sw.Elapsed.TotalSeconds:F2}s");
|
||||
|
Reference in New Issue
Block a user