mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user