mirror of
https://github.com/MinazukiAmane/Tinasha-Bot.git
synced 2025-03-15 07:35:57 +08:00
fix default lyrics
This commit is contained in:
parent
09f8822778
commit
417876306a
@ -63,8 +63,8 @@ async function getLyric({ client, guild, member }, query) {
|
||||
}
|
||||
|
||||
const node = player.node;
|
||||
const baseUrl = (node.options.port !== 80 && node.options.secure)
|
||||
? `https://${node.options.host}:${node.options.port}`
|
||||
const baseUrl = (node.options.port !== 80 && node.options.secure)
|
||||
? `https://${node.options.host}:${node.options.port}`
|
||||
: `http://${node.options.host}:${node.options.port}`;
|
||||
|
||||
// Try default lyrics endpoint first
|
||||
@ -76,7 +76,7 @@ async function getLyric({ client, guild, member }, query) {
|
||||
|
||||
if (defaultRes.ok) {
|
||||
lyrics = await defaultRes.json();
|
||||
if (lyrics && (lyrics.lyrics || lyrics.lines)) {
|
||||
if (lyrics) {
|
||||
return createLyricsEmbed(lyrics, member, track);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user