Noah Petherbridge

Results 108 comments of Noah Petherbridge

To help debug it, try doing `console.log(JSON.stringify(rs._topics, null, 2))` to print out the `_topics` structure. I'm starting to think it was failing to load the replies in the first place!...

Going back to your original ticket: > this.master._sorted.thats[top].length Are you making sure to call `sortReplies()` between when you load the `.rive` files and before you get a reply? The `_sorted.thats`...

Hi, To help me verify what exactly the problem is, can you give me a working test case? Maybe as a GitHub gist or link me to a branch on...

```javascript await this.bot.loadFile([ './brain/begin.rive', './brain/sarcasm.rive', './brain/about.rive', // web, // backend, // about, // search, // spotify ], this.bot.sortReplies() && console.log('RiveScript: Replies Sorted'), on_load_error) ``` I think that the line `this.bot.sortReplies()...

> ERR: No default topic 'random' was found! This usually means the replies didn't load properly. I saw in your console output you had an empty object `{}`, this looks...

Hi, what's your Node version? From `node -v` It's weird that it's highlighting `loadFile` but I can think of two recent-*ish* ES6 features on this line that may be the...

Wildcards, JavaScript and Unicode don't get along very well, as you can see from all the other issues linked above. The `?` command was added recently to try and work...

So the `?` command was added to work around limitations in JavaScript's regexp engine (along with the simplifed regexp system RiveScript uses to make the triggers more user-friendly), with regards...

Check your browser console for any errors. The "Object Not Found" probably meant your object macro failed to parse correctly in the first place (syntax error for example). `rs.getUservar()` nowadays...