Correct missing command in loopback test adaptor

This commit is contained in:
deadprogram 2013-10-25 12:52:55 -07:00
parent f2cf92644b
commit 69a476dfbf
3 changed files with 11 additions and 0 deletions

4
dist/loopback.js vendored
View File

@ -35,6 +35,10 @@
return Logger.info("Disconnecting from adaptor '" + this.name + "'...");
};
Loopback.prototype.commands = function() {
return ['ping'];
};
return Loopback;
})();

View File

@ -7,6 +7,10 @@ bots = [
]
class ChattyRobot
connection:
name: 'loopback'
adaptor: 'loopback'
work: (me) ->
every 1.seconds(), ->
Logger.info me.name

View File

@ -23,3 +23,6 @@ class Loopback
disconnect: ->
Logger.info "Disconnecting from adaptor '#{@name}'..."
commands: ->
['ping']