Najova

DocsExtensionsdiscord.najova

discord.najova/nhs0.0.2

Official Najova Package

For bots hosted on Nylon Hosting: is it hosted, NHS Credits left, values kept across restarts, and a log line.

nhs (Nylon Hosting)

Needs discord.najova 0.0.7 or newer.

Switch it on for your project on the Packages page in Najova IDE (Home > Packages). Then $use[discord] alone gives:

$use[discord]
$nhsKeep[greeting;hello]
$print[$nhsRead[greeting]]
FunctionGives
$nhsHostedyes on Nylon Hosting, no on your PC
$nhsCreditsNHS Credits left, or nil on your PC
$nhsKeep[name;value]keeps a value across restarts and new uploads (nil removes it)
$nhsRead[name]the value, or nil
$nhsLog[text]a line in the bot's log

The older way ($call)

Bots made before 0.0.7 keep working:

For bots hosted on Nylon Hosting. The same bot runs on your PC too.

$use[discord]
$use[discord/nhs]
$call[nhs.keep;greeting;hello]
$print[$call[nhs.read;greeting]]
CallGives
nhs.hostedyes on Nylon Hosting, no on your PC
nhs.creditsNHS Credits left, updated about once a minute; nil on your PC
nhs.keep name, valuekeeps a value across restarts and new uploads; nil removes it (1 MB in all)
nhs.read namethe value, or nil
nhs.log texta line in the bot's log

You start and stop hosting from the Bot tab. A script can read your credits but can't spend them.

Functions

nhs.hosted

$call[nhs.hosted]

yes on Nylon Hosting, no on your PC.

nhs.credits

$call[nhs.credits]

The NHS Credits left, or nil on your PC.

nhs.read

$call[nhs.read;name]

A value kept with keep, or nil.

nhs.keep

$call[nhs.keep;name;value]

Keeps a value across restarts and new uploads (nil removes it).

nhs.log

$call[nhs.log;text]

A line in the bot's log.

nhs.nhsHosted

$nhsHosted

0.0.2 (packages rework, owner 2026-11-12): switched on for a project (Packages page in Najova IDE), nhs adds these names to discord, so $use[discord] alone gives them. yes on Nylon Hosting, no on your PC.

nhs.nhsCredits

$nhsCredits

The NHS Credits left, or nil on your PC.

nhs.nhsKeep

$nhsKeep[name;value]

Keeps a value across restarts and new uploads (nil removes it).

nhs.nhsRead

$nhsRead[name]

A value kept with $nhsKeep, or nil.

nhs.nhsLog

$nhsLog[text]

A line in the bot's log.