Updated to 1.20.1
This commit is contained in:
@ -44,7 +44,7 @@ class CJbot{
|
||||
this.password = args.password;
|
||||
this.host = args.host;
|
||||
this.auth = args.auth || 'microsoft';
|
||||
this.version = args.version || '1.19.2';
|
||||
this.version = args.version || '1.20.1';
|
||||
|
||||
// States if the bot should connect when its loaded
|
||||
this.autoReConnect = 'autoConnect' in args ? args.autoReConnect : true;
|
||||
@ -349,7 +349,6 @@ class CJbot{
|
||||
}
|
||||
|
||||
goTo(options){
|
||||
console.log('goTo options', options)
|
||||
return new Promise(async(resolve, reject)=>{
|
||||
|
||||
let range = options.range || 2;
|
||||
@ -358,7 +357,6 @@ class CJbot{
|
||||
await this._goTo(options.where, range)
|
||||
return resolve();
|
||||
}catch(error){
|
||||
console.log('goTo error', error)
|
||||
if(options.reTry) return reject('Action can not move to where')
|
||||
await this._goTo(options, true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user