// Provide a default path to dwr.engine if (dwr == null) var dwr = {}; if (dwr.engine == null) dwr.engine = {}; if (DWREngine == null) var DWREngine = dwr.engine; if (bot == null) var bot = {}; bot._path = '/carulla/dwr'; bot.getResponse = function(p0, callback) { dwr.engine._execute(bot._path, 'bot', 'getResponse', p0, callback); } bot.getBot = function(callback) { dwr.engine._execute(bot._path, 'bot', 'getBot', callback); } bot.getBotId = function(callback) { dwr.engine._execute(bot._path, 'bot', 'getBotId', callback); } bot.markBadAnswer = function(callback) { dwr.engine._execute(bot._path, 'bot', 'markBadAnswer', callback); }