-
Notifications
You must be signed in to change notification settings - Fork 120
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
how does one put arbitrary text into a command? #169
Comments
Here or StackOverflow is fine, but Caster doesn't have a SO category.
You need to create a Dictation object in your rule's "extras" section.
Sending from my phone so won't go into detail now but if you need help with
that, please ask and I'll answer when I get home.
…On Feb 2, 2017 5:59 PM, "Kendon Bell" ***@***.***> wrote:
It would be something like:
"<text>": R(Text("<text>"), rdescript=""),
But this produces the error:
Exception: Unknown reference name '<text>' in '<text>'
Question as an aside: would you prefer these types of questions on
stackoverflow?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/synkarius/caster/issues/169>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACGJWfqsPK4ZUsVOjNevzZ-NSTsQAry4ks5rYl_kgaJpZM4L1v8f>
.
|
I'm not sure how to go about that. The "extras" argument is to the |
Glad to help. Have a look at this extra in sample.py: https://github.com/synkarius/caster/blob/master/sample.py#L63 That is what you should do with your own rule. If you still have trouble after looking at that, post your entire rule and I'll help you fix it. |
Thanks so much for this. I got it to work. The essential elements for future visitors:
|
Or even more simply:
|
It would be something like:
But this produces the error:
Exception: Unknown reference name '<text>' in '<text>'
Question as an aside: would you prefer these types of questions on stackoverflow?
The text was updated successfully, but these errors were encountered: