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('..');
|
var cylon = require('..');
|
||||||
|
|
||||||
// Initialize the robot
|
cylon.robot({
|
||||||
var robot = cylon.robot({
|
|
||||||
work: function() {
|
work: function() {
|
||||||
every((1).second(), function() { Logger.info("hello, human!"); });
|
every((1).second(), function() { Logger.info("hello, human!"); });
|
||||||
}
|
}
|
||||||
});
|
}).start();
|
||||||
|
|
||||||
// start working
|
|
||||||
robot.start();
|
|
||||||
|
|
Loading…
Reference in New Issue