From b6b810b4de38fd6b4e75bd1c5d71860e5087c756 Mon Sep 17 00:00:00 2001 From: mudkipscience Date: Sat, 9 May 2020 16:43:30 +1000 Subject: [PATCH] fixed skip + rate --- src/commands/rate.js | 5 +++++ src/modules/music.js | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/commands/rate.js b/src/commands/rate.js index d4f0eac..64ded10 100644 --- a/src/commands/rate.js +++ b/src/commands/rate.js @@ -16,6 +16,11 @@ var rating = [ "9/10", "10/10" ]; + +if (message.content.includes("@everyone")) { + return message.channel.send('>:('); +} + let mess = rating.random(); message.channel.send(`<:star:618393201501536258> I give ${args.join(" ")} a **${mess}**`); }; diff --git a/src/modules/music.js b/src/modules/music.js index a3bb99e..d5b5d86 100644 --- a/src/modules/music.js +++ b/src/modules/music.js @@ -240,6 +240,8 @@ exports.setVolume = function (guild, target) { exports.skip = function (guild, reason) { const g = exports.getGuild(guild.id) + g.skippers = [] + if (g.dispatcher) { g.dispatcher.end(reason) }