hylyh / bondage.js

Javascript-based parser for the Yarn dialogue tree markup language
https://www.npmjs.com/package/bondage
MIT License
57 stars 21 forks source link

Commands with parameters example #44

Closed justjuank closed 5 years ago

justjuank commented 5 years ago

Hi guys, I just updated my version of bondage after a long time and I see you changed the way commands work, but I don't see a way to receive the parameters passed. Did you get rid of command parameters and now we just get a string? previously I would get all my parameters in the commandHandler function I provided. I don't see an example of parameters in the main page. Any help would be greatly appreciated. Thanks.

justjuank commented 5 years ago

Nevermind I think I was parsing the parameters by myself before, I just needed to run the .text received from the command through my parsing function and that's it. Thank you for continuing supporting this library.