Add response for if you don't have any timers

This commit is contained in:
SileNce5k 2022-06-17 17:43:25 +02:00
parent d115ba214b
commit d0af91dda4
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -7,6 +7,7 @@ module.exports = {
if(timer.user === message.author.id)
authorTimers += `<t:${timer.reminderDate}:R>\n`;
});
message.channel.send(`Your timers are:\n${authorTimers}`);
let sendText = "" === authorTimers ? `You have no timers` : `Your timers are:\n${authorTimers}`
message.channel.send(sendText);
}
};