Skip to content

PolyLogiX-Studio/Neos.js

Repository files navigation

NOTE Current Public Build moved to Legacy branch. Master is the typescript rework, and is not in a working state. All future releases will be Typescript. Core API Moved to CloudX.js. All future updates to legacy will be published to @bombitmanbomb/neosjs-legacy

API Library for NeosVR. This is NOT a client for the Neos Numerical Optimisation Server, Find that at neos-js


Neos.js


Discord server GitHub package.json version NPM version NPM downloads Build GitHub code size in bytes GitHub issues Total alerts Language grade: JavaScript emoji-log

npm installnfo

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

Ko-Fi

Patreon

Open Source Love svg3

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

Can I run Neos.js in my Browser

No, NeosVR CORS Policy denies browser requests. You must make requests from a Node server. Personally I use Glitch.

Will you add Browser Support

This is a limitation imposed by the Neos server and workarounds are Very limited, as well as extremely Unsafe.

How do I use a Pre-Release Version

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

X breaks when I do YZ / Can you make NeosJs do X

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.

Github, NPM

neosjs-headless-interface

Programatic Headless Interface Session.

Github, NPM

Changelog

View Changelog