Show timer message on timers command

This commit is contained in:
SileNce5k 2023-05-20 23:33:09 +02:00
parent 354d4cd098
commit a098ab6616
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

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