node-metaverse icon indicating copy to clipboard operation
node-metaverse copied to clipboard

Documentation

Open 4-Git-Nova opened this issue 2 years ago • 2 comments

I seen someone open an issue for this and then closed it with no replies. Installation, went fine, just had to install git & node since it was a new server. created app.js & copied the Usage: Javascript replaced the firstname, lastname and password with correct information & bot logs in when I run node app.js.

So, I now have a bot logged in and that's where I'm at.

Any direction on how to actually use the bot/avatar? How do send commands to the bot? Is there a list of current commands? How do you receive or intercept anything from the bot? (IM's, Nearby, Group, Inventory offers, Dialogs, TP Lures, etc)

4-Git-Nova avatar May 02 '23 23:05 4-Git-Nova

Aside from the examples folder I don't think there's any formal documentation. There are various events you can subscribe to bot.clientEvents, and commands under bot.clientCommands.

bot.clientEvents.onNearbyChat.subscribe(async (event) => {
  console.log(event)

  if (event.message.toLocaleLowerCase().includes("Hello")) {
    await bot.clientCommands.comms.say("Hello!");
  }
});

gwigz avatar May 03 '23 14:05 gwigz

Thanks @gwigz that was some help, I managed to get IM's and response working, teleport makes node crash/stop

4-Git-Nova avatar May 03 '23 23:05 4-Git-Nova