Noah Petherbridge

Results 108 comments of Noah Petherbridge

Ah - that sounds familiar so I went searching and found issue #47 where I looked into this before. RiveScript loads the `>object` by using `eval()`, so the object runs...

Object macros are allowed to use Promises if you invoke the bot's reply with the `replyAsync()` function instead of `reply()`. [Here's an example](https://github.com/aichaos/rivescript-js/tree/master/eg/reply-async). You use the `resolve()` function of the...

`replyAsync()` returns an object of type `Promise`, which isn't directly useful as a return value. You just have to invert your function calls. ```javascript talkback.replyAsync("local-user", triggr).then(function(reply) { e.message.channel.sendMessage(reply); }); ```...

It might need to use `rs.Promise` instead of `Promise`... when it was first implemented Promises weren't widely supported so `rs.Promise` was a polyfill, but, the code might be _expecting_ the...

@hisRoyalty @AndrewYatzkan A couple ideas: if trying to import a module with require() from inside a `> object` declaration in RiveScript, the import path may need to be modified because...

Since reading your first comment I was staring at this bit of code: ``` - ^ ``` And I'm pretty sure that syntax doesn't work (well) in any version of...

What I always suggest doing instead when somebody wants to `` the output of a `` is to set the variable *inside* the macro instead of outside it, i.e. by...

> rivescript {@} redirections do not call the javascript macros That sounds like a bug that needs fixing. I wonder if it's calling the wrong reply function under the hood...

I like their syntax! The features you quoted would be good for RiveScript too and not _too_ difficult to implement... * Adding `&&` and `||` support for `*Condition` would be...

It's probably being cached by your browser. Some web servers may compare the client's request to the file on disk, return HTTP 304 Not Modified, and the browser just uses...