From 575149287bcea678f45b0d57eff5c3e3a3af9338 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 2 May 2021 11:13:06 -0400 Subject: [PATCH] Fix --- commands/games-sp/guess-song.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/games-sp/guess-song.js b/commands/games-sp/guess-song.js index 521894ea..8f9333e4 100644 --- a/commands/games-sp/guess-song.js +++ b/commands/games-sp/guess-song.js @@ -134,12 +134,13 @@ module.exports = class GuessSongCommand extends Command { } async shortTrackName(longName) { - const { body } = await request + const { text } = await request .get('https://demaster.hankapi.com/demaster') .query({ long_track_name: longName, format: 'json' }); + const body = JSON.parse(text); return body.short_track_name; }