This commit is contained in:
ChomeNS 2023-03-01 07:43:53 +07:00
parent 88f31a8753
commit ba790eb89a
2 changed files with 2 additions and 5 deletions

View file

@ -187,11 +187,7 @@ module.exports = {
} }
break break
case 'stop': case 'stop':
try {
bot.tellraw(selector, { text: 'Cleared the song queue' }) bot.tellraw(selector, { text: 'Cleared the song queue' })
} catch (e) {
return
}
bot.music.stop() bot.music.stop()
break break
case 'skip': case 'skip':

View file

@ -88,6 +88,7 @@ function inject (bot) {
return return
} }
bot.music.queue.shift() bot.music.queue.shift()
bot.music.song = null // useless?
if (!bot.music.queue[0]) { if (!bot.music.queue[0]) {
bot.music.stop() bot.music.stop()
return return