UDP Circuit basics, message changes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const nmv = require('../dist/index');
|
||||
const nmv = require('../dist/index');
|
||||
const loginParameters = new nmv.LoginParameters();
|
||||
|
||||
const parameters = require('./loginParameters.json');
|
||||
@@ -10,11 +10,16 @@ loginParameters.start = "last";
|
||||
|
||||
const bot = new nmv.Bot(loginParameters);
|
||||
|
||||
bot.Login().then(() =>
|
||||
bot.Login().then((response) =>
|
||||
{
|
||||
|
||||
//Establish circuit wit region
|
||||
return response.region.circuit.establish(response.agent.agentID);
|
||||
}).then(() =>
|
||||
{
|
||||
console.log("Region circuit established");
|
||||
}).catch((error) =>
|
||||
{
|
||||
console.log("Error:");
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user