Skip to content

Instantly share code, notes, and snippets.

@deadprogram
Created April 25, 2015 04:31
Show Gist options
  • Select an option

  • Save deadprogram/de514fec594b405df2bc to your computer and use it in GitHub Desktop.

Select an option

Save deadprogram/de514fec594b405df2bc to your computer and use it in GitHub Desktop.
var Cylon = require("cylon");
Cylon.robot({
name: "test",
connections: {
loopback: { adaptor: "loopback" }
},
devices: {
ping: { driver: "ping" }
},
work: function(my) {
var timer;
timer = every((1).seconds(), function(){
console.log("Hello, human!");
});
after((5).seconds(), function(){
console.log("I've been at your command for 5 seconds now. I'm done");
clearInterval(timer);
});
}
});
Cylon.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment