home - docs - posts - github - contact - rss

JS - Utility Functions

disconnect

Terminates the connection with the user. Script will not continue after this function.

exec

Execute another script from the scripts directory.

getdoors

Returns an array of objects describing all doors on the system.

Example:

[
{
"key": "SOMEKEY",
"name": "Some Door",
"category": "Games"
},
{
"key": "SOMEOTHERKEY",
"name": "Another door",
"category": "Utils"
}
]

getversion

Returns an object describing the versions of related parts of the system.

Example:

{
"envy": "0.1-a6787f",
"system": "Linux",
"sysver": "6.11.2",
"machine": "x86_64",
"duktape": "2.4.0"
}

opname

Returns the sysop's username as entered into envy.ini

rundoor

Runs a door corresponding to the specified key.

Back to Documentation