Error with adding clients - Nodejs CL
Hello, I am having an error with CLI.addClient(IAccount); whenever I add an account I get this error:
Code:
[11:52:50 | NRelay] Adding mule
Successfully changed trade loop on: SHENDYT to: 1
[11:52:51 | mule] Starting connection to USSouthWest
Successfully initalized client:mule
[11:52:51 | mule] Connected to USSouthWest!
[11:52:51 | mule] The connection to USSouthWest was closed.
[11:52:51 | mule] Reconnecting in 5 seconds
It keeps saying the connection was closed and tries to reconnect, this is what it looks like when I add
Code:
const mule: IAccount = {
alias: 'mule',
guid: config.bots[i].mule.mail,
password: config.bots[i].mule.pass,
serverPref: config.server,
charInfo: null,
proxy: null
}
console.log(mule.alias); // The account information is valid
console.log(mule.guid);
console.log(mule.password);
console.log(mule.serverPref);
muledispatcher = client.playerData.name;
this.tradingmule[client.alias] = true;
CLI.addClient(mule);