diff options
| author | 8cy <[email protected]> | 2020-05-05 21:10:10 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-05-05 21:10:10 -0700 |
| commit | 6f0020ebcd43f1851748b0d6eee3648442e8417d (patch) | |
| tree | 0bbc912d9324589346d7ef60d60e1a7b4ff27140 /src | |
| parent | formatting, change api url (diff) | |
| download | dep-core-6f0020ebcd43f1851748b0d6eee3648442e8417d.tar.xz dep-core-6f0020ebcd43f1851748b0d6eee3648442e8417d.zip | |
change api urls
i have no idea how i messed this one up
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.json | 2 | ||||
| -rw-r--r-- | src/server.ts | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/config.json b/src/config.json index 0070bac..c62c6ab 100644 --- a/src/config.json +++ b/src/config.json @@ -1,7 +1,7 @@ { "secret":"Njk5NDczMjYzOTk4MjcxNDg5.XpU5oQ.btZuxVudhNllSQY6CxrXXtMJm9A", "yt-api-key":"AIzaSyCeG1lQAeInv4vjFv_eTL9IFAFNdQC9Nk8", - "version":"1.10.3", + "version":"1.10.4", "fortniteTrackerNetworkToken": "4cf21f95-5f1a-412a-b4a7-e5424adc314a", "maxMultipler": 100, "minMultipler": 1.01 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 }) }); } |