Updated to 1.20.1

This commit is contained in:
2023-07-25 10:57:01 -04:00
parent d07dc0260b
commit 03c4f4790a
5 changed files with 74 additions and 423 deletions

View File

@ -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);
}