Noah Petherbridge

Results 107 comments of Noah Petherbridge

For async/await, there was no choice but to break backwards compatibility. To use the `await` keyword, your function must be an `async function`, and those _always_ return a Promise (even...

I've published v2.0.0-alpha.5 to npm now which adds the User Variable Session Manager interface. ## Backwards Incompatible Changes For the user variables to be async everywhere, all of their functions...

What does your workflow look like when you use RiveScript with Angular? Webpack is commonly used for bundling a JavaScript app for web browsers (creating a single bundled.min.js script to...

The `` tag is always the _last_ one processed and its output can't mix with other tags. As an alternative, try setting the user variable inside the object macro. ```...

Perhaps an alternative way to detect questions is to look at the first word of the message? ``` + (who|what|how|why|when) * - {topic=questions}{@ } ``` Alternatively, your bot code can...

This isn't currently supported. You also can't really "try anyway" because rivescript-js was updated a while back to use shell-style arguments to object macros, where a "quoted string of words"...

In the mean time this workaround might give some limited success: https://play.rivescript.com/s/4ls3BcNRoo Put the JSON into a user variable (should be fine as long as your JSON contains no closing...

Yeah, go ahead and send a pull request for this. :smile: The high level logic I imagine would go something like, 1. Search for the `(.+?)` regexp and put the...

You're right on the diagnosis that the regexp `/(.+?)/` catches the wrong closing tag. So this isn't a supported feature. :( If you know a clever way to make it...

Nested `` tags aren't supported in the other implementations, either. They all more or less share the same logic throughout with the same regexps in most places. There _is_ one...