mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
- Started cleanup of command handler
- Removed IUnloadableService - Started removing INService (removed it from services which implement behavior interfaces) - wip - Added scrutor for better service registration - wip
This commit is contained in:
@@ -28,7 +28,7 @@ using Image = SixLabors.ImageSharp.Image;
|
||||
|
||||
namespace NadekoBot.Modules.Xp.Services
|
||||
{
|
||||
public class XpService : INService, IUnloadableService
|
||||
public class XpService : INService
|
||||
{
|
||||
private enum NotifOf
|
||||
{
|
||||
@@ -1182,14 +1182,6 @@ namespace NadekoBot.Modules.Xp.Services
|
||||
}
|
||||
}
|
||||
|
||||
public Task Unload()
|
||||
{
|
||||
_cmd.OnMessageNoTrigger -= _cmd_OnMessageNoTrigger;
|
||||
_client.UserVoiceStateUpdated -= _client_OnUserVoiceStateUpdated;
|
||||
_client.GuildAvailable -= _client_OnGuildAvailable;
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
public void XpReset(ulong guildId, ulong userId)
|
||||
{
|
||||
using (var uow = _db.GetDbContext())
|
||||
|
Reference in New Issue
Block a user