From 390273321b32b6efc62deab11588d86486bfd90d Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Thu, 9 Jun 2022 23:01:37 +0200 Subject: [PATCH] Add timers command to check your own timers --- commands/misc/timers.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 commands/misc/timers.js diff --git a/commands/misc/timers.js b/commands/misc/timers.js new file mode 100644 index 0000000..de01136 --- /dev/null +++ b/commands/misc/timers.js @@ -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}`); + } +}; \ No newline at end of file