Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation #73

Open
4-Git-Nova opened this issue May 2, 2023 · 2 comments
Open

Documentation #73

4-Git-Nova opened this issue May 2, 2023 · 2 comments

Comments

@4-Git-Nova
Copy link

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)

@gwigz
Copy link
Contributor

gwigz commented May 3, 2023

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!");
  }
});

@4-Git-Nova
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants