There were some other small edits as well, mostly formatting or better logging in certain functions
13 lines
No EOL
413 B
JavaScript
13 lines
No EOL
413 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 += `${timer.ID} : <t:${timer.reminderDate}:R>`;
|
|
});
|
|
let sendText = "" === authorTimers ? `You have no timers` : `Your timers are:\n${authorTimers}`
|
|
message.channel.send(sendText);
|
|
}
|
|
}; |