feat: (ui) first dynamic data

This commit is contained in:
syntaxbullet
2026-01-09 15:22:13 +01:00
parent 1b84dbd36d
commit 4a691ac71d
4 changed files with 117 additions and 12 deletions

View File

@@ -388,6 +388,7 @@ export async function createWebServer(config: WebServerConfig = {}): Promise<Web
bot: { name: 'Aurora', avatarUrl: null },
guilds: 0,
commandsRegistered: 0,
commandsKnown: 0,
cachedUsers: 0,
ping: 0,
uptime: 0,
@@ -406,7 +407,11 @@ export async function createWebServer(config: WebServerConfig = {}): Promise<Web
bot: clientStats.bot,
guilds: { count: clientStats.guilds },
users: { active: activeUsers, total: totalUsers },
commands: { total: clientStats.commandsRegistered },
commands: {
total: clientStats.commandsKnown,
active: clientStats.commandsRegistered,
disabled: clientStats.commandsKnown - clientStats.commandsRegistered
},
ping: { avg: clientStats.ping },
economy: {
totalWealth: economyStats.totalWealth.toString(),