Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Commit

Permalink
Fix emoji not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
HELLSNAKES committed Nov 18, 2021
1 parent 1963d22 commit 11ae28b
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 17 deletions.
22 changes: 13 additions & 9 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,29 +159,33 @@ const status = (queue) => `Volume: \`${queue.volume}%\` | Loop: \`${queue.repeat
client.distube
.on("playSong", (queue, song) => {
const embed = new MessageEmbed()
.setTitle("<:headphones:879518595602841630> Started Playing")
.setColor("RANDOM")
.setAuthor("Started Playing", `https://raw.githubusercontent.com/HELLSNAKES/Music-Slash-Bot/main/assets/music.gif`)
.setThumbnail(song.thumbnail)
.setDescription(`[${song.name}](${song.url})`)
.addField("**Views:**", song.views.toString())
.addField("<:like:879371469132562552>", song.likes.toString())
.addField("<:dislike:879371468817973299>", song.dislikes.toString())
.addField("**Duration:**", song.formattedDuration.toString())
.addField("**Views:**", song.views.toString(),true)
.addField("**Like:**", song.likes.toString(),true)
.addField("**Dislike:**", song.dislikes.toString(),true)
.addField("**Duration:**", song.formattedDuration.toString(),true)
.addField("**Status**", status(queue).toString())
.setThumbnail(song.thumbnail)
.setColor("RANDOM")
.setFooter(`Requested by ${song.user.username}`, song.user.avatarURL())
.setTimestamp()
queue.textChannel.send({ embeds: [embed] })
})
.on("addSong", (queue, song) => {
const embed = new MessageEmbed()
.setTitle("<:addsong:879518595665780746> Added song to queue")
.setTitle(":ballot_box_with_check: | Added song to queue")
.setDescription(`\`${song.name}\` - \`${song.formattedDuration}\` - Requested by ${song.user}`)
.setColor("RANDOM")
.setTimestamp()
queue.textChannel.send({ embeds: [embed] })
})
.on("addList", (queue, playlist) => {
const embed = new MessageEmbed()
.setTitle("<:addsong:879518595665780746> Add list")
.setTitle(":ballot_box_with_check: | Add list")
.setDescription(`Added \`${playlist.name}\` playlist (${playlist.songs.length} songs) to queue\n${status(queue)}`)
.setColor("RANDOM")
.setTimestamp()
queue.textChannel.send({ embeds: [embed] })
})
.on("error", (textChannel, e) => {
Expand Down
10 changes: 6 additions & 4 deletions commands/Music/nowplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,17 @@ module.exports = {
}
const song = queue.songs[0]
const embed = new Discord.MessageEmbed()
.setTitle("<:headphones:879518595602841630> Now Playing")
.setAuthor("Now Playing", `https://raw.githubusercontent.com/HELLSNAKES/Music-Slash-Bot/main/assets/music.gif`)
.setDescription(`[${song.name}](${song.url})`)
.addField("**Views:**", song.views.toString())
.addField("<:like:879371469132562552>", song.likes.toString())
.addField("<:dislike:879371468817973299>", song.dislikes.toString())
.addField("**Views:**", song.views.toString(),true)
.addField("**Like:**", song.likes.toString(),true)
.addField("**Dislike:**", song.dislikes.toString(),true)
.addField("**Duration:**", `${queue.formattedCurrentTime} / ${song.formattedDuration}`)
.addField("**Status**", status(queue).toString())
.setThumbnail(song.thumbnail)
.setColor("RANDOM")
.setFooter(`Requested by ${song.user.username}`, song.user.avatarURL())
.setTimestamp()
return interaction.reply({ embeds: [embed] })
}
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "music-slash-bot",
"version": "2.0.0",
"version": "3.0.0",
"description": "a simple music bot using the slash command",
"main": "app.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version" : "odsa0",
"version" : "xlosa",
"note" : "Please do not edit this file"
}

0 comments on commit 11ae28b

Please sign in to comment.