hubotio / hubot

A customizable life embetterment robot.

Home Page:https://hubotio.github.io/hubot/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to avoid hubot printing a default JSON output for every question asked ??

kavya05 opened this issue · comments

my hubot prints some unknown JSON response for every question i ask, no idea whats the issue.
image

commented

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..