Skip to content
XHiddenProjects edited this page Aug 9, 2024 · 3 revisions

Functions can be used to execute and run WebServerAI which is loaded for JavaScript

Loading (Required)

To load the software use this function

{WebServerAI_Obj}.load();

Submitting Data (Required)

This will submit data to the AI

/* * Submits the user's data * $input is user's information */ (...).submit(($input)=>{ if($input){ // Functions go here } });

Adding commands (Required)

This function will automatically check for valid commands to send out.

(...).submit(($input)=>{ if($input){ (...).addCmd($input); // Add command here } });

Sending data (Required)

This is to send the information to the AI to process.

(...).submit(($input)=>{ if($input){ (...) (...).send($input, true); } });

Getting results

The results that the AI outputs

(...).submit(($input)=>{ if($input){ (...) (...).results(($o)=>{ // Returns an array console.log($o); }); } });
Clone this wiki locally