13 lines
No EOL
401 B
JavaScript
13 lines
No EOL
401 B
JavaScript
module.exports = {
|
|
name: "timers",
|
|
description: "Check your own timers",
|
|
execute({client, message}) {
|
|
let authorTimers = "";
|
|
client.timers.forEach(timer => {
|
|
if(timer.user === message.author.id)
|
|
authorTimers += `<t:${timer.reminderDate}:R>\n`;
|
|
});
|
|
let sendText = "" === authorTimers ? `You have no timers` : `Your timers are:\n${authorTimers}`
|
|
message.channel.send(sendText);
|
|
}
|
|
}; |