Closed esatterwhite closed 5 years ago
You should be able to do just that using .parse()
instead of .load()
:
const Botml = require('botml')
const bot = new Botml()
bot.parse(`
! BOTML 1
> Hello
< Hello human!
`.trim()
)
bot.start()
Ah. Thanks!
It looks like it can only load from disk or urls.
Id really like to be able to generate the workflows from an application and load them into a bot directly