Lines Matching refs:bot
23 // TODO(andresp): There should be a way to control which bot was spawned
24 // and what bot instance it gets connected to.
46 console.log('Error: Type ' + botType + ' not supported by rtc-Bot!');
53 var bot = this.createBot_(name, botType, callback);
54 this.bots_.push(bot);
55 this.pendingConnections_.push(bot.onBotConnected.bind(bot));
63 this.app_.use('/bot/api.js',
65 __dirname + '/bot/api.js'));
67 this.app_.use('/bot/', Express.static(__dirname + '/bot'));
90 // A basic bot waits for onBotConnected to be called with a stream to the actual
91 // endpoint with the bot. Once that stream is available it establishes a dnode
94 Bot = function (name, callback) {
99 Bot.prototype = {
101 console.log("bot:" + this.name_ + " > " + msg);
119 // BrowserBot spawns a process to open "http://localhost:8080/bot/browser".
122 // and exposes the bot api.
124 Bot.call(this, name, callback);
131 child.exec('google-chrome "http://localhost:8080/bot/browser/"');
134 __proto__: Bot.prototype
138 // "http://localhost:8080/bot/browser/" on chrome for Android.
140 Bot.call(this, name, callback);
152 '-d http://localhost:8080/bot/browser/';
163 __proto__: Bot.prototype