Skip to content

Commit

Permalink
music: fix yt search
Browse files Browse the repository at this point in the history
  • Loading branch information
vladdenisov committed Jun 9, 2020
1 parent 50ff710 commit 061f91c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/music/music.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ exports.run = async (client, message) => {
else songs = await this.songs(servers[message.guild.id], `${ args[0] }`)
if (!songs) return 0
if (!args.includes('+p')) {
songs.splice(0, songs.length - 1)
songs = songs.slice(0, 1)
}
for (let song of songs) {
try {
Expand Down

0 comments on commit 061f91c

Please sign in to comment.