$nodeInfo
$nodeInfo will return given lavalink node information.
Usage
$nodeInfo[name;type]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| name | string | Lavalink node name | true |
| type | string | Information to retrieve (see below) | true |
Types
| Field | Returns | Description |
|---|---|---|
| cpu.cores | number | Returns the cpu cores |
| cpu.system | number | Returns the cpu system load |
| cpu.lavalink | number | Returns the cpu lavalink load |
| memory.free | number | Returns the free memory left |
| memory.used | number | Returns the used memory |
| memory.allocated | number | Returns the allocated memory |
| memory.reservable | number | Returns the reservable memory |
| player.total | number | Returns the total player |
| player.used | number | Returns the used player |
| status | string | Returns online or offline |
Example(s)
This will return given lavalink node information
1client.command({2 name: 'nodeinfo',3 code: `4 $nodeInfo[node 1;cpu.cores]5 `6});This will return given lavalink node information
1module.exports = [{2 name: "nodeinfo",3 code: `4 $nodeInfo[node 1;cpu.cores]5 `6}]