Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hwangsihu committed Sep 13, 2024
1 parent 447190e commit 623a6d3
Show file tree
Hide file tree
Showing 15 changed files with 0 additions and 44 deletions.
3 changes: 0 additions & 3 deletions locales/ChineseCN.json
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,6 @@
"playlist_stolen": "已成功从 {user} 窃取播放列表 `{playlist}`。",
"error_occurred": "窃取播放列表时出错。"
}
},
"lyrics": {
"description": "Get's the lyrics of the currently playing track."
}
},
"buttons": {
Expand Down
3 changes: 0 additions & 3 deletions locales/ChineseTW.json
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,6 @@
"playlist_stolen": "已成功從 {user} 竊取播放清單 `{playlist}`。",
"error_occurred": "竊取播放清單時出錯。"
}
},
"lyrics": {
"description": "Get's the lyrics of the currently playing track."
}
},
"buttons": {
Expand Down
1 change: 0 additions & 1 deletion locales/EnglishUS.json
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@
"searching": "`🔍` Searching for **{trackTitle}** lyrics...",
"errors": {
"no_results": "No lyrics found for the current track.",
"no_playing": "No track is currently playing.",
"lyrics_error": "An error occurred while getting the lyrics."
}
},
Expand Down
3 changes: 0 additions & 3 deletions locales/French.json
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,6 @@
"language": "La langue que vous souhaitez définir",
"reset": "Change la langue par défaut"
}
},
"lyrics": {
"description": "Get's the lyrics of the currently playing track."
}
},
"buttons": {
Expand Down
3 changes: 0 additions & 3 deletions locales/German.json
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,6 @@
"language": "Die Sprache, die du einstellen möchtest",
"reset": "Ändere die Sprache zurück zur Standardsprache"
}
},
"lyrics": {
"description": "Get's the lyrics of the currently playing track."
}
},
"buttons": {
Expand Down
3 changes: 0 additions & 3 deletions locales/Hindi.json
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,6 @@
"playlist_stolen": "{user} se playlist `{playlist}` ko safaltapoorvak chura लिया गया है.",
"error_occurred": "Playlist ko churaate समय एक error aaya."
}
},
"lyrics": {
"description": "Get's the lyrics of the currently playing track."
}
},
"buttons": {
Expand Down
3 changes: 0 additions & 3 deletions locales/Indonesian.json
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,6 @@
"playlist_stolen": "Berhasil mencuri playlist `{playlist}` dari {user}.",
"error_occurred": "Terjadi kesalahan saat mencuri Playlist."
}
},
"lyrics": {
"description": "Get's the lyrics of the currently playing track."
}
},
"buttons": {
Expand Down
3 changes: 0 additions & 3 deletions locales/Japanese.json
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,6 @@
"playlist_stolen": "{user} からプレイリスト `{playlist}` を正常に盗みました。",
"error_occurred": "プレイリストの盗難中にエラーが発生しました。"
}
},
"lyrics": {
"description": "Get's the lyrics of the currently playing track."
}
},
"buttons": {
Expand Down
1 change: 0 additions & 1 deletion locales/Korean.json
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@
"searching": "`🔍` **{trackTitle}**의 가사 검색 중...",
"errors": {
"no_results": "가사를 찾지 못했어요.",
"no_playing": "현재 재생중인 노래가 없어요.",
"lyrics_error": "가사를 검색하는 도중 오류가 발생했어요."
}
},
Expand Down
3 changes: 0 additions & 3 deletions locales/Norwegian.json
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,6 @@
"playlist_stolen": "Stjal spillelisten `{playlist}` fra {user}.",
"error_occurred": "En feil oppstod under stjeling av spillelisten."
}
},
"lyrics": {
"description": "Get's the lyrics of the currently playing track."
}
},
"buttons": {
Expand Down
3 changes: 0 additions & 3 deletions locales/Polish.json
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,6 @@
"playlist_stolen": "Pomyślnie skradziono playlistę `{playlist}` od {user}.",
"error_occurred": "Wystąpił błąd podczas kradzieży playlisty."
}
},
"lyrics": {
"description": "Get's the lyrics of the currently playing track."
}
},
"buttons": {
Expand Down
3 changes: 0 additions & 3 deletions locales/Russian.json
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,6 @@
"playlist_stolen": "Успешно украден плейлист `{playlist}` у {user}.",
"error_occurred": "Произошла ошибка при краже плейлиста."
}
},
"lyrics": {
"description": "Get's the lyrics of the currently playing track."
}
},
"buttons": {
Expand Down
3 changes: 0 additions & 3 deletions locales/SpanishES.json
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,6 @@
"language": "El idioma que quieres establecer",
"reset": "Cambia el idioma de nuevo al idioma predeterminado"
}
},
"lyrics": {
"description": "Get's the lyrics of the currently playing track."
}
},
"buttons": {
Expand Down
3 changes: 0 additions & 3 deletions locales/Vietnamese.json
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,6 @@
"playlist_stolen": "Đã đánh cắp danh sách phát `{playlist}` từ {user} thành công.",
"error_occurred": "Đã xảy ra lỗi khi đánh cắp danh sách phát."
}
},
"lyrics": {
"description": "Get's the lyrics of the currently playing track."
}
},
"buttons": {
Expand Down
6 changes: 0 additions & 6 deletions src/commands/music/Lyrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ export default class Lyrics extends Command {
const player = client.queue.get(ctx.guild!.id);
const embed = this.client.embed();

if (!(player && !player.isPlaying)) {
return await ctx.sendMessage({
embeds: [embed.setColor(client.color.red).setDescription(ctx.locale("cmd.lyrics.errors.no_playing"))],
});
}

const currentTrack = player.current;
const trackTitle = currentTrack.info.title.replace(/\[.*?\]/g, "").trim();
const artistName = currentTrack.info.author.replace(/\[.*?\]/g, "").trim();
Expand Down

0 comments on commit 623a6d3

Please sign in to comment.