Skip to content
Entity Info botNode

$botNode

The $botNode function returns the node identifier that the host provides to the command in the context variable bot.node.

Syntax

$botNode

Parameters

None (passing one is an error).

Return value

  • Type: String
  • The value of bot.node.
  • If the context does not provide it, the text 1. The engine itself does not set this variable, so it is normally 1.

Behavior

  • No request is made to Discord: the value only comes from the context.

Examples

Technical Information Page

$title[🔧 Technical Information]
$addField[🤖 Bot;$botName;yes]
$addField[🆔 ID;$botID;yes]
$addField[📦 Node;$botNode;yes]
$addField[⚡ Runtime;$nodeVersion;yes]
$addField[📝 Language;$scriptLanguage;yes]
$footer[Hosting expires: $hostingExpireTime]
$color[#5865F2]

Debug command (owner only)

$if[$authorID!=$botOwnerID]
  $ephemeral
  ❌ Reserved for the owner.
  $stop
$endif

$title[🛠️ Debug Bot]
$description[
**Name:** $botName
**ID:** $botID
**Node:** $botNode
**Runtime:** $nodeVersion
**Language:** $scriptLanguage
**Commands:** $commandsCount
]

Message signature

$sendMessage[Message processed by $botName]
$footer[Node: $botNode | $nodeVersion]

Notes

  • For the version of the runtime, use $nodeVersion.
  • For the script language, use $scriptLanguage.

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.