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 | |
| 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
| -rw-r--r-- | package.json | 2 | ||||
| -rw-r--r-- | src/config.json | 2 | ||||
| -rw-r--r-- | src/server.ts | 9 |
3 files changed, 8 insertions, 5 deletions
diff --git a/package.json b/package.json index 8f2e180..a7eb7df 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uwufier", - "version": "1.10.3", + "version": "1.10.4", "description": "A Discord bot that supports audio playback, fun commands, utilities, and soundsboard, and more to come!", "main": "./dist/app.js", "scripts": { 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 }) }); } |