Added some more unloads, upped version to 2.0
This commit is contained in:
		| @@ -20,7 +20,7 @@ namespace NadekoBot.Services.Impl | ||||
|         private readonly IBotCredentials _creds; | ||||
|         private readonly DateTime _started; | ||||
|  | ||||
|         public const string BotVersion = "1.10.2"; | ||||
|         public const string BotVersion = "2.0.0-alpha"; | ||||
|  | ||||
|         public string Author => "Kwoth#2560"; | ||||
|         public string Library => "Discord.Net"; | ||||
|   | ||||
| @@ -22,6 +22,7 @@ using NadekoBot.Common.TypeReaders.Models; | ||||
| using NadekoBot.Services.Database; | ||||
| using StackExchange.Redis; | ||||
| using Newtonsoft.Json; | ||||
| using System.Runtime.Loader; | ||||
|  | ||||
| namespace NadekoBot | ||||
| { | ||||
| @@ -418,7 +419,7 @@ namespace NadekoBot | ||||
|             { | ||||
|                 if (_packageModules.ContainsKey(name)) | ||||
|                     return false; | ||||
|  | ||||
|                  | ||||
|                 var package = Assembly.LoadFile(Path.Combine(AppContext.BaseDirectory, | ||||
|                                                 "modules", | ||||
|                                                 $"NadekoBot.Modules.{name}", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user