diff --git a/index.js b/index.js index 5d70360..4c426cb 100644 --- a/index.js +++ b/index.js @@ -186,6 +186,8 @@ bot.prototype.unloadPlugin = function(name, options) { this.removeListeners(pl); delete this.plugins[cleanName]; + } else { + throw 'Plugin not found: ' + name; } };