Rename auto_start to 'auto'
This commit is contained in:
parent
83bf4e3d14
commit
299ade796b
|
@ -120,9 +120,9 @@ var Robot = module.exports = function Robot(opts) {
|
||||||
this.commands = opts.commands;
|
this.commands = opts.commands;
|
||||||
}
|
}
|
||||||
|
|
||||||
var mode = Utils.fetch(Config, 'mode', 'auto_start');
|
var mode = Utils.fetch(Config, 'mode', 'auto');
|
||||||
|
|
||||||
if (mode === 'auto_start') {
|
if (mode === 'auto') {
|
||||||
// run on the next tick, to allow for 'work' event handlers to be set up
|
// run on the next tick, to allow for 'work' event handlers to be set up
|
||||||
setTimeout(this.start, 0);
|
setTimeout(this.start, 0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ global.source = function(module) {
|
||||||
var Cylon = source('cylon');
|
var Cylon = source('cylon');
|
||||||
|
|
||||||
Cylon.config({
|
Cylon.config({
|
||||||
auto_start: false
|
mode: "manual"
|
||||||
});
|
});
|
||||||
|
|
||||||
Cylon.Logger.setup(false);
|
Cylon.Logger.setup(false);
|
||||||
|
|
Loading…
Reference in New Issue