-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs on using JS interface #205
Comments
The one you're looking for is
|
great, thanks! Are these documented anywhere? otherwise would it help if I made a PR for the wiki? |
I added a page to the wiki https://github.com/aichaos/rivescript/wiki/Javascript-snippets#accessing-uservars-from-js |
getUservars() and currentUser() are documented, but perhaps they could document more info on what the returned structure looks like. |
thanks, noted, updated wiki entry. closing. |
I was trying to get at some variables from a JS Object macro and can't seem to find any docs.
basically I used
but this seems to give a hash using the userID:
is this correct? The JS object doesn't just have the uservars directly accessible I would need to find it off the userID hash? that seems odd.
Then, I'm sure there was a method for
getUserId()
but I can't seem to find that either in the docs.https://www.rivescript.com/docs/tutorial#object-macros
http://rivescript.readthedocs.io/en/latest/rivescript.html
https://github.com/aichaos/rivescript-js/tree/master/eg/reply-async
The text was updated successfully, but these errors were encountered: