No need to have function name thing

This commit is contained in:
SileNce5k 2022-05-15 00:48:27 +02:00
parent 0076de762c
commit d992598dc9
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -6,7 +6,7 @@ module.exports = {
return message.channel.send("Please specify a time in minutes, and a message to send after the timer has finished");
let time = args[0] * 60000;
let sendText = args.slice(1).join(" ");
let timer = setTimeout(function(){
setTimeout(function(){
message.channel.send(`<@${message.author.id}>, ${sendText}`);
}, time);
message.channel.send(`I will remind you in ${time / 60000} minutes`);