@bombitmanbomb/neosjs
v1.15.2
Published
Neos API
Downloads
264
Readme
API Library for NeosVR. This is NOT a client for the Neos Numerical Optimisation Server, Find that at neos-js
Table of Contents
Documentation
View Full Documentation HERE Neos.js uses JSDoc and the docdash. IntelliSense is set up for VSCode.
Support
Do you want to help with Neos.js Development? Consider pledging to our Patreon or Donating to us on KoFi
Want to submit Code? Read our Contributors Guide!
For Questions or Assistance open a Discussion or join our Discord after checking our FAQ
View Development Time Allocation
NeosJS
Library for communicating with the NeosAPI
neos.SendTextMessage("U-Neos", "This is a Message!");
Usage
npm i @bombitmanbomb/neosjs
const Neos = require('@bombitmanbomb/neosjs')
const neos = new Neos()
neos.on("login",(obj)=>{
console.log(obj.CurrentUser, obj.CurrentSession) // Log the current user and Session
})
neos.on("friendAdded",(friend)=>{
if (friend.FriendStatus == "Requested") {
neos.AddFriend(friend) // Accept the Friend Request
}
console.log(friend) //New Friend
})
neos.on("messageReceived",(message)=>{
neos.SendTextMessage(message.SenderId,message.Content) // Reply recieved message back
})
neos.Login(Username<String>, Password<String>, SessionToken(optional)<String>, MachineID<String>, RememberMe<Boolean>)
FAQ
No, NeosVR CORS Policy denies browser requests. You must make requests from a Node server. Personally I use Glitch.
This is a limitation imposed by the Neos server and workarounds are Very limited, as well as extremely Unsafe.
Most notable Pre-Release versions are available on NPM. -alpha is Unstable, -beta is Usable but might have bugs, -rc is the Release Candidate for the next build and Should be stable. To use a specific version use
npm install @bombitmanbomb/neosjs@version
Feedback and Bug reports are Very important to maintaining Neosjs, The best way to report a bug or ask for a feature is via Issues
Plugins
Popular Plugins will be listed Here
neosjs-commands
Library that makes adding commands to the bot super simple.
neosjs-headless-interface
Programatic Headless Interface Session.
Changelog
View Changelog