-1

I am trying to call hubot help for unknown commands for hubot. how can I call hubot help from another command like hubot test. Since I am using hubot help from external scripts file. I am not able to add robot.on inside it. How can I do this?

srth
  • 16
  • 4

1 Answers1

0

I am not able to find the exact solution. But the following workaround for getting the help commands worked

helpCommands = robot.helpCommands() + '';
test = helpCommands.split(',');
for j in test
    msg.send "#{j}"
Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
srth
  • 16
  • 4