remove tilde prefix for command usage

This commit is contained in:
reality 2014-09-13 19:40:59 +00:00
parent 0ebdb2dbde
commit 2570eb99a6

8
run.js
View File

@ -329,6 +329,14 @@ DBot.prototype.reloadModules = function() {
this.commands[cName.substring(1)] = command; this.commands[cName.substring(1)] = command;
} }
}, this); }, this);
_.each(this.usage, function(command, cName) {
if(cName.charAt(0) == '~') {
delete this.usage[cName];
this.usage[cName.substring(1)] = command;
}
}, this);
}.bind(this)); }.bind(this));
this.save(); this.save();