Packages can be loaded/unloaded. IUnloadableService interface added whose method Unload, if service implements it, will be called when the module is unloaded.

This commit is contained in:
Master Kwoth
2017-10-05 00:51:12 +02:00
parent 599245b1ca
commit 33ac43e1b5
74 changed files with 866 additions and 520 deletions
NadekoBot.Core
NadekoBot.Module.Searches
NadekoBot.Modules.CustomReactions
NadekoBot.Modules.Gambling
NadekoBot.Modules.Games
NadekoBot.Modules.Music
NadekoBot.Modules.Nsfw
NadekoBot.Modules.Pokemon
NadekoBot.Modules.Utility
NadekoBot.Modules.Xp
NadekoBot.sln
src/NadekoBot

@ -48,6 +48,7 @@ namespace NadekoBot.Modules.Administration
[OwnerOnly]
public async Task StartupCommandAdd([Remainder] string cmdText)
{
//todo don't let .die be a startup command
var guser = ((IGuildUser)Context.User);
var cmd = new StartupCommand()
{