mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 19:52:36 +01:00
fix ~usage
This commit is contained in:
parent
b17ad5042b
commit
6f48c30044
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user