diff options
Diffstat (limited to 'src/server.ts')
| -rw-r--r-- | src/server.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/server.ts b/src/server.ts index f126f4e..151d55f 100644 --- a/src/server.ts +++ b/src/server.ts @@ -28,12 +28,15 @@ class WebSocket { res.redirect('https://kyzer.co/discord/bots/uwufier/') }) this.app.get('/api/v1/commands/', async (req, res) => { - res.json({ guilds: await this.client.registry.commands.size }) + res.json({ commands: await this.client.registry.commands.size }) + }); + this.app.get('/api/v1/groups/', async (req, res) => { + res.json({ groups: await this.client.registry.groups.size }) }); this.app.get('/api/v1/commands/groups/', async (req, res) => { - res.json({ guilds: await this.client.registry.groups.size }) + res.json({ groups: await this.client.registry.groups.size }) }); - this.app.get('/api/v1/servers/', async (req, res) => { + this.app.get('/api/v1/guilds/', async (req, res) => { res.json({ guilds: await this.client.guilds.cache.size }) }); } |