RocketChat / hubot-natural

Natural Language Processing Chatbot for RocketChat
https://open.rocket.chat/channel/hubot-natural
MIT License
144 stars 44 forks source link

Removing attribute type in YAML, in order to make it cleaner and more flexible #35

Closed Duerno closed 6 years ago

diegodorgam commented 6 years ago

interesting, you're proposing to remove type attribute to use a YAML notation where one line of response could have a new structure of levels for multiple responses. Is that right?

Duerno commented 6 years ago

Yes. The main idea is that you have a list of answers and the bot will choose one of them randomly. Each answer can be a single message or a list of messages (previously called 'block' messages). Each message (string) may have multiple lines by using de default YAML syntax (with | and >, as described in YAML Multiline Strings).

diegodorgam commented 6 years ago

@Duerno we have some problems with your commits, just merged another one that changes some structure conventions. Can you take a look?

Duerno commented 6 years ago

@diegodorgam I've rebased my commit with origin/master and updated the structure conventions.