Hello in both javascript and coffeescript
This commit is contained in:
parent
132282d4c2
commit
a46a8c4a71
|
@ -0,0 +1,8 @@
|
|||
cylon = require('..')
|
||||
|
||||
cylon.robot
|
||||
work: ->
|
||||
every 1.second(), ->
|
||||
Logger.info("hello, human!")
|
||||
|
||||
.start()
|
|
@ -1,11 +1,7 @@
|
|||
var cylon = require('..');
|
||||
|
||||
// Initialize the robot
|
||||
var robot = cylon.robot({
|
||||
cylon.robot({
|
||||
work: function() {
|
||||
every((1).second(), function() { Logger.info("hello, human!"); });
|
||||
}
|
||||
});
|
||||
|
||||
// start working
|
||||
robot.start();
|
||||
}).start();
|
||||
|
|
Loading…
Reference in New Issue