From 2fa0b76bafa7b0cb2fe6cf39817e2c93d2e20356 Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Fri, 28 Dec 2018 01:16:45 +0100 Subject: [PATCH] --- commands/admin/slowmode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/admin/slowmode.js b/commands/admin/slowmode.js index 31a9000..d7aed14 100644 --- a/commands/admin/slowmode.js +++ b/commands/admin/slowmode.js @@ -35,9 +35,9 @@ module.exports = class CustomResponseCommand extends Command { if (realtime) { let time = 60000 * realtime; message.say(`Slowmode have been set to ${slowmodeNumber} seconds and will end in ${realtime} minutes!`); - var interval = setInterval (function (){ + setTimeout (function (){ message.channel.setRateLimitPerUser(0); - message.say("Slowmode is now disabled!") + return message.say("Slowmode is now disabled!") }, time); } else { if (slowmodeNumber == 0)