aichaos / rivescript-go

A RiveScript interpreter for Go. RiveScript is a scripting language for chatterbots.
https://www.rivescript.com/
MIT License
60 stars 16 forks source link

Unformatted Input #34

Closed meowgorithm closed 7 years ago

meowgorithm commented 7 years ago

I’m curious if it's possible to capture raw (or at least, unlowercased) input in a macro. I'm encountering a case where I need to capture case-sensitive input with punctuation and, as far as I can tell, the data would currently need to be captured outside of RiveScript.

kirsle commented 7 years ago

You can use SetUservar to set their raw message before calling Reply. You can get it back in an object macro via rs.GetUservar(rs.CurrentUser(), "rawMsg") or so.

On Sep 11, 2017 5:31 PM, "Christian Rocha" notifications@github.com wrote:

I’m curious if it's possible to capture raw (or at least, unlowercased) input in a macro. I'm encountering a case where I need to capture case-sensitive input with punctuation and, as far as I can tell, the data would currently need to be captured outside of RiveScript.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/aichaos/rivescript-go/issues/34, or mute the thread https://github.com/notifications/unsubscribe-auth/ABliE1vySjEFIeO4pUW-VU8NKF378l8iks5shdDGgaJpZM4PT8Ri .

meowgorithm commented 7 years ago

Brilliant, that totally makes sense. Thank you!