Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 529 Bytes

lang.coffee.md

File metadata and controls

17 lines (11 loc) · 529 Bytes

CoffeeObjectHandler (RiveScript master)

CoffeeScript Language Support for RiveScript Macros. This language is not enabled by default; to enable CoffeeScript object macros:

   CoffeeObjectHandler = require "rivescript/lang/coffee"
   bot.setHandler "coffee", CoffeeObjectHandler

void load (string name, string[] code)

Called by the RiveScript object to load CoffeeScript code.

string call (RiveScript rs, string name, string[] fields)

Called by the RiveScript object to execute CoffeeScript code.