Skip to content

Commit 72409bf

Browse files
committed
Upgrade lavalink node info
1 parent 43f1de1 commit 72409bf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bot/src/main/kotlin/me/duncte123/skybot/commands/essentials/StatsCommand.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,18 @@ class StatsCommand : Command() {
128128
availableNodes.forEachIndexed { index, node ->
129129
val stats = node.stats ?: return@forEachIndexed
130130

131+
val nodeInfo = node.getNodeInfo().block()!!
132+
131133
embed.addField(
132-
"Lavalink node #$index",
134+
"Node #$index ${node.name} (v${nodeInfo.version.semver}/jvm ${nodeInfo.jvm}/LP ${nodeInfo.lavaplayer})",
133135
"""**Uptime:** ${AirUtils.getUptime(stats.uptime)}
134136
|**CPU cores:** ${stats.cpu.cores}
135137
|**System Load:** ${stats.cpu.systemLoad}%
136138
|**Used memory:** ${stats.memory.used shr 20}MB
137139
|**Free memory:** ${stats.memory.free shr 20}MB
138140
|**Players:** ${stats.players}
139141
|**Players playing:** ${stats.playingPlayers}
142+
|**Sources:** ${nodeInfo.sourceManagers.joinToString()}
140143
""".trimMargin(),
141144
true
142145
)

0 commit comments

Comments
 (0)