forked from GitHub/dbot
fix ~usage
This commit is contained in:
parent
b17ad5042b
commit
6f48c30044
@ -55,7 +55,8 @@ var command = function(dbot) {
|
|||||||
|
|
||||||
'commands': {
|
'commands': {
|
||||||
'~usage': function(event) {
|
'~usage': function(event) {
|
||||||
var commandName = event.params[0];
|
var commandName = event.params[1];
|
||||||
|
console.log(commandName);
|
||||||
if(dbot.commands.hasOwnProperty(commandName)) {
|
if(dbot.commands.hasOwnProperty(commandName)) {
|
||||||
event.reply('Usage for ' + commandName + ': ' +
|
event.reply('Usage for ' + commandName + ': ' +
|
||||||
dbot.commands[commandName].usage);
|
dbot.commands[commandName].usage);
|
||||||
|
Loading…
Reference in New Issue
Block a user