Noah Petherbridge

Results 108 comments of Noah Petherbridge

You can use `stream()` to add new triggers whenever you want (make sure to call `sortReplies()` afterward so they're actually matchable). The router example code exists entirely outside the rivescript...

`sortReplies()` can be called multiple times without a restart. It deletes the sort buffers and remakes them from scratch each time.

This form should probably still work: ``` + how are(you|u) - i am fine ``` In that example it'd probably be a typo, but I could see users deliberately not...

It will probably need a code change in rivescript-python. Is the exception raised on this line? https://github.com/aichaos/rivescript-python/blob/b55c820cf02a194605fd66af1f070e239f84ed31/rivescript/brain.py#L448 ```python regexp = regexp.replace('_', '(\w+?)') ``` It seems from the `re` docs, \w...

The original stack trace comes from the Redis session driver, so that would be a good thing to look into. It sounds like somewhere in the user data structure, it's...

Hi `! var myvar = hello` sets a *bot variable* named `myvar` and you'd retreive it with `` User variables are set with `` and retrieved with ``. ``` !...

Hi It's because `rs.reply()` is a synchronous method and can't return the reply until *everything* has finished. When it's processing the tags in the reply and sees the `` tag,...

Ah sorry, I meant to include parenthesis around the regexp: ```python parts = re.split(r'()', reply) ```

Optionals are meant to have spaces around them. They're for "optional words", not "or". The regular expression the optionals turn into makes use of the `\b` word-boundary metacharacter, which matches...