Fix zerocoder, use buffers instead of strings for vardata, add util for null-terminated string<->buffer conversion
This commit is contained in:
@@ -12,14 +12,30 @@ const bot = new nmv.Bot(loginParameters);
|
||||
|
||||
let resp = null;
|
||||
|
||||
bot.Login().then((response) =>
|
||||
bot.login().then((response) =>
|
||||
{
|
||||
//Establish circuit wit region
|
||||
resp = response;
|
||||
return response.region.circuit.establish(response.agent.agentID);
|
||||
return bot.connectToSim();
|
||||
}).then(() =>
|
||||
{
|
||||
resp.region.circuit.sendInstantMessage(resp.agent.agentID, "dbcd7dfe-a5db-4736-91bc-2af1e69902e6", "FUCK YOU");
|
||||
let it = 0;
|
||||
setInterval(() =>
|
||||
{
|
||||
it++;
|
||||
if (it < 11)
|
||||
{
|
||||
bot.sendInstantMessage("dbcd7dfe-a5db-4736-91bc-2af1e69902e6", "Test " + it);
|
||||
bot.sendInstantMessage("d1cd5b71-6209-4595-9bf0-771bf689ce00", "Test " + it);
|
||||
}
|
||||
}, 1000);
|
||||
}).then(() =>
|
||||
{
|
||||
console.log("IM 1 Sent");
|
||||
}).then(() =>
|
||||
{
|
||||
//console.log("Logging off");
|
||||
//return bot.close();
|
||||
}).catch((error) =>
|
||||
{
|
||||
console.log("Error:");
|
||||
|
||||
Reference in New Issue
Block a user