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:
NadekoBot.Core
NadekoBot.Module.Searches
NadekoBot.Modules.CustomReactions
NadekoBot.Modules.Gambling
AnimalRacingCommands.csCurrencyEventsCommands.csNadekoBot.Modules.Gambling.csproj
Services
SlotCommands.csWaifuClaimCommands.csNadekoBot.Modules.Games
AcropobiaCommands.cs
Common
Connect4Commands.csHangmanCommands.csNadekoBot.Modules.Games.csprojNunchiCommands.csPlantAndPickCommands.csServices
SpeedTypingCommands.csTicTacToeCommands.csTriviaCommands.csNadekoBot.Modules.Music
NadekoBot.Modules.Nsfw
NadekoBot.Modules.Pokemon
NadekoBot.Modules.Utility
NadekoBot.Modules.Utility.csproj
Services
NadekoBot.Modules.Xp
NadekoBot.slnsrc/NadekoBot
NadekoBot.csprojProgram.cs
_strings
ResponseStrings.ar.jsonResponseStrings.cs-CZ.jsonResponseStrings.da-DK.jsonResponseStrings.de-DE.jsonResponseStrings.en-US.jsonResponseStrings.es-ES.jsonResponseStrings.fr-FR.jsonResponseStrings.he-IL.jsonResponseStrings.id-ID.jsonResponseStrings.it-IT.jsonResponseStrings.ja-JP.jsonResponseStrings.ko-KR.jsonResponseStrings.nb-NO.jsonResponseStrings.nl-NL.jsonResponseStrings.pl-PL.jsonResponseStrings.pt-BR.jsonResponseStrings.ro-RO.jsonResponseStrings.ru-RU.jsonResponseStrings.sr-cyrl-rs.jsonResponseStrings.sv-SE.jsonResponseStrings.tr-TR.jsonResponseStrings.zh-CN.jsonResponseStrings.zh-TW.json
@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user