File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
bot/src/main/kotlin/me/duncte123/skybot/commands/essentials Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments