Version 1.0.0 - Final Version (without Logo)

This commit is contained in:
Raphix
2023-09-15 22:10:11 +02:00
parent 35ea19b743
commit ae163756f7
18 changed files with 76 additions and 53 deletions

View File

@ -43,26 +43,39 @@ module.exports.play = async function (client, interaction) {
const songs = await client.manager.search(song_name)
if(!player.playing) {
player.play(songs.tracks[0])
if(songs.tracks.length == 0) {
const embed = await new EmbedBuilder()
.setColor(0x15e6ed)
.setTitle('**Lecture de : **' + songs.tracks[0].title)
.setDescription('**Demandé par **' + interaction.member.user.username)
.addFields({name: "Auteur", value: songs.tracks[0].author},
{name: "URL", value:songs.tracks[0].uri})
.setThumbnail(songs.tracks[0].thumbnail)
.setColor(0xff0000)
.setTitle('*On connait pas le morceau !*')
.setTimestamp();
interaction.reply({embeds: [embed]})
interaction.reply({embeds: [embed], ephemeral: true})
} else {
list.add(songs.tracks[0], interaction)
if(!player.playing) {
player.play(songs.tracks[0])
const embed = await new EmbedBuilder()
.setColor(0x15e6ed)
.setTitle('**Lecture de : **' + songs.tracks[0].title)
.setDescription('**Demandé par **' + interaction.member.user.username)
.addFields({name: "Auteur", value: son.tracks[0].author},
{name: "URL", value:songs.tragscks[0].uri})
.setThumbnail(songs.tracks[0].thumbnail)
.setTimestamp();
interaction.reply({embeds: [embed]})
} else {
list.add(songs.tracks[0], interaction)
}
}
}