how to avoid hubot printing a default JSON output for every question asked ??
kavya05 opened this issue · comments
Can you give us the list of the plugins you load? maybe one of them is having that debug code in there and should be fixed.
the issue was with this:
msg.send("please provide workload name"); robot.respond(/(.*)/i, function(msg) { var name = msg.match[1];
it was not taking user input for var name
but was reading the previous msg.send
and was taking please
as the name and hence the api call returned the empty JSON. :( this is difficult to have a fluent conversation..