Add timers command to check your own timers

This commit is contained in:
SileNce5k 2022-06-09 23:01:37 +02:00
parent 1fe63da38e
commit 390273321b
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

12
commands/misc/timers.js Normal file
View file

@ -0,0 +1,12 @@
module.exports = {
name: "timer",
description: "Check your own timers",
execute({client, message}) {
let authorTimers = "";
client.timers.forEach(timer => {
if(timer.user === message.author.id)
authorTimers += `${timer.reminderDate}\n`;
});
message.channel.send(`Your timers are:\n${authorTimers}`);
}
};