From 2570eb99a6bb8b42e9279ac09cd6355adfa60444 Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 13 Sep 2014 19:40:59 +0000 Subject: [PATCH] remove tilde prefix for command usage --- run.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/run.js b/run.js index deaefa3..e8af57e 100644 --- a/run.js +++ b/run.js @@ -329,6 +329,14 @@ DBot.prototype.reloadModules = function() { this.commands[cName.substring(1)] = command; } }, this); + + _.each(this.usage, function(command, cName) { + if(cName.charAt(0) == '~') { + delete this.usage[cName]; + this.usage[cName.substring(1)] = command; + } + }, this); + }.bind(this)); this.save();