discord.najova/nhs0.0.2
Official Najova PackageFor 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]]| Function | Gives |
|---|---|
$nhsHosted | yes on Nylon Hosting, no on your PC |
$nhsCredits | NHS 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]]| Call | Gives |
|---|---|
nhs.hosted | yes on Nylon Hosting, no on your PC |
nhs.credits | NHS Credits left, updated about once a minute; nil on your PC |
nhs.keep name, value | keeps a value across restarts and new uploads; nil removes it (1 MB in all) |
nhs.read name | the value, or nil |
nhs.log text | a 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
$nhsHosted0.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
$nhsCreditsThe 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.