Add timers command to check your own timers
This commit is contained in:
parent
1fe63da38e
commit
390273321b
1 changed files with 12 additions and 0 deletions
12
commands/misc/timers.js
Normal file
12
commands/misc/timers.js
Normal 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}`);
|
||||||
|
}
|
||||||
|
};
|
Loading…
Add table
Reference in a new issue