InstantMessage helper function, fix issue with failing to use the returned buffer

This commit is contained in:
Casper Warden
2017-11-26 03:10:54 +00:00
parent 886fced88f
commit 3f25aa0f1b
2 changed files with 44 additions and 3 deletions

View File

@@ -10,13 +10,16 @@ loginParameters.start = "last";
const bot = new nmv.Bot(loginParameters);
let resp = null;
bot.Login().then((response) =>
{
//Establish circuit wit region
resp = response;
return response.region.circuit.establish(response.agent.agentID);
}).then(() =>
{
console.log("Region circuit established");
resp.region.circuit.sendInstantMessage(resp.agent.agentID, "dbcd7dfe-a5db-4736-91bc-2af1e69902e6", "FUCK YOU");
}).catch((error) =>
{
console.log("Error:");