3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00

fix ~usage

This commit is contained in:
Luke Slater 2012-12-02 16:26:56 +00:00
parent b17ad5042b
commit 6f48c30044

View File

@ -55,7 +55,8 @@ var command = function(dbot) {
'commands': {
'~usage': function(event) {
var commandName = event.params[0];
var commandName = event.params[1];
console.log(commandName);
if(dbot.commands.hasOwnProperty(commandName)) {
event.reply('Usage for ' + commandName + ': ' +
dbot.commands[commandName].usage);