silentrob / superscript-websocket-demo

WebSocket example app
18 stars 9 forks source link

Empty replies #3

Open mohonish opened 8 years ago

mohonish commented 8 years ago

The bot only responds with empty replies to any query. I parsed main.ss, checked data.json and it is populated, then ran the server with debug config.

It appears that the input "Hi" was successfully determined to be ~emohello. After which it gets a blank reply.

mquery find +464ms {} { fields: undefined }
GetReply Topics to check +31s []
Message Creating message from: +5ms 
Message Callback Early, empty msg +0ms
User Updating History +4ms
Script Update and Reply to user 'b8DvDEYsrmYzAxFbAAAB' +479ms { replyId: undefined,
createdAt: Fri Nov 20 2015 11:42:52 GMT+0530 (IST),
string: '',
gambitId: undefined,
topicName: undefined,
subReplies: undefined }

Trying to figure out what went wrong. Even tried adding my own triggers, but everything gets a blank reply.

EvanCoh commented 8 years ago

Replies are indeed empty. I also added empty basic triggers, did a "parse" and still replies were blank.

fgadaleta commented 8 years ago

It could be that you are not giving the data.json to the botHandle function. Maybe you guys are forgetting this

TopicSystem.importerFile('./data.json', function(){...

MarkLyck commented 8 years ago

Running into the same problem.

@worldofpiggy That is not in the steps, Where do you put that?