Feat: Author in music stuff (#75)
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
Add author in lyrics auto search Add Authors in nowplaying, queue, trackstart event Co-authored-by: Mylloon <kennel.anri@tutanota.com> Reviewed-on: #75
This commit is contained in:
parent
db5aff64c8
commit
d521a2fe8c
4 changed files with 4 additions and 4 deletions
|
@ -56,7 +56,7 @@ export default {
|
||||||
const title = queue.current?.title;
|
const title = queue.current?.title;
|
||||||
if (title) {
|
if (title) {
|
||||||
try {
|
try {
|
||||||
data = await client.player.lyrics.search(title);
|
data = await client.player.lyrics.search(title + " " + queue.current.author);
|
||||||
} catch {
|
} catch {
|
||||||
return await interaction.followUp(`❌ | ${loc.get("c_lyrics2")} \`${title}\``);
|
return await interaction.followUp(`❌ | ${loc.get("c_lyrics2")} \`${title}\``);
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,7 +80,7 @@ export default {
|
||||||
.setDescription(
|
.setDescription(
|
||||||
`${queue.createProgressBar()}\n\n${loc.get("c_play8")} ${track.requestedBy}`
|
`${queue.createProgressBar()}\n\n${loc.get("c_play8")} ${track.requestedBy}`
|
||||||
)
|
)
|
||||||
.setTitle(track.title)
|
.setTitle(track.title + " • " + track.author)
|
||||||
.setURL(track.url)
|
.setURL(track.url)
|
||||||
.setThumbnail(track.thumbnail)
|
.setThumbnail(track.thumbnail)
|
||||||
.setFooter({ text: loc.get("c_play7") })
|
.setFooter({ text: loc.get("c_play7") })
|
||||||
|
|
|
@ -10,7 +10,7 @@ export default (queue: Queue<Metadata>, track: Track, client: Client) => {
|
||||||
|
|
||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setDescription(`${loc_default?.get("e_trackstart1")} ${track.requestedBy}`)
|
.setDescription(`${loc_default?.get("e_trackstart1")} ${track.requestedBy}`)
|
||||||
.setTitle(track.title)
|
.setTitle(track.title + " • " + track.author)
|
||||||
.setURL(track.url)
|
.setURL(track.url)
|
||||||
.setThumbnail(track.thumbnail)
|
.setThumbnail(track.thumbnail)
|
||||||
.setFooter({
|
.setFooter({
|
||||||
|
|
|
@ -29,7 +29,7 @@ export const embedListQueue = (
|
||||||
const idx_track = idx == 0 ? "" : `${idx * page}. `;
|
const idx_track = idx == 0 ? "" : `${idx * page}. `;
|
||||||
embed.addFields({
|
embed.addFields({
|
||||||
name,
|
name,
|
||||||
value: `${idx_track}[${t.title}](${t.url}) (${t.duration})`,
|
value: `${idx_track}[${t.title} • ${t.author}](${t.url}) (${t.duration})`,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue