forked from Supositware/Haha-Yes
This commit is contained in:
parent
7214614e01
commit
2fa0b76baf
1 changed files with 2 additions and 2 deletions
|
@ -35,9 +35,9 @@ module.exports = class CustomResponseCommand extends Command {
|
||||||
if (realtime) {
|
if (realtime) {
|
||||||
let time = 60000 * realtime;
|
let time = 60000 * realtime;
|
||||||
message.say(`Slowmode have been set to ${slowmodeNumber} seconds and will end in ${realtime} minutes!`);
|
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.channel.setRateLimitPerUser(0);
|
||||||
message.say("Slowmode is now disabled!")
|
return message.say("Slowmode is now disabled!")
|
||||||
}, time);
|
}, time);
|
||||||
} else {
|
} else {
|
||||||
if (slowmodeNumber == 0)
|
if (slowmodeNumber == 0)
|
||||||
|
|
Loading…
Reference in a new issue