rocdev-foundation / medera

Is a chat bot the new "Hello, World"?
GNU General Public License v3.0
1 stars 2 forks source link

Add formatting option to skill definition #26

Open geowa4 opened 7 years ago

geowa4 commented 7 years ago

Skills are defined as a noun, verb, definition, and command. Let's add a "format" option that corresponds to a skill. For now, we will only have one format skill that fences the output between triple backticks yielding pre-formatted text in Slack. In the skill definition, the format field will will be optional, defaulting to "pre" as its value.

description: foo
verb: get
noun: bar
command: ls
format: pre

The above is equivalent to the below.

description: foo
verb: get
noun: bar
command: ls