Skip to content

Commit 3c656ac

Browse files
authored
Update index.js
1 parent 58c4008 commit 3c656ac

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,16 @@ bot.on("message", function(message) {
8282
let remind = message.content.split(" ").slice(2).join(" ");
8383

8484
if (!args[1]) {
85-
message.channel.send("Please provide a time in seconds, minutes, hours, days or months! Example: `/remindme 3d Do homework`")
85+
return message.channel.send("Please provide a time in seconds, minutes, hours, days or months! Example: `/remindme 3d Do homework`");
8686
}
8787

8888
if (!remind) {
89-
message.channel.send("Please provide a text or a sentence to remind you for. Example: `/remindme 3d Do homework`")
89+
return message.channel.send("Please provide a text or a sentence to remind you for. Example: `/remindme 3d Do homework`");
9090
}
9191

92-
if (args[1], remind) {
9392
setTimeout(function() {
9493
message.author.sendMessage(`:clock130: **DING!** Remind text: **${remind}**. Remind time set: **${ms(ms(time), {long: true})}**`);
9594
}, ms(time));
96-
}
9795
break;
9896
case "give":
9997
let mention = message.mentions.members.first()

0 commit comments

Comments
 (0)