Added some more unloads, upped version to 2.0

This commit is contained in:
Master Kwoth
2017-10-09 00:54:10 +02:00
parent 33ac43e1b5
commit 72f36270dc
6 changed files with 24 additions and 11 deletions

View File

@ -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}",